https://github.com/cran/GsymPoint
Raw File
Tip revision: 158c572b6991bd851086fb65dec3157d2ba15647 authored by Mónica López-Ratón on 31 October 2023, 18:30:02 UTC
version 1.1.2
Tip revision: 158c572
relative_sample.R
relative_sample <-
function(X0, X1, h)
{

  n1 = length(X1)
  x <- numeric(length = n1)

  if (h == 0)
  {
      x = cdf_empirical_dist(X0,X1)
  }

  else
  {
      x = cdf_gaussianKernel(X0,X1,h)
  }

  res <- x
  return(res)
}
back to top