Direct sampling

direct_sampling(
  data = NULL,
  n = 100L,
  method = c("kde", "surrogate", "bootstrap"),
  kde = NULL,
  seed = NULL,
  ...
)

Arguments

data

A numeric vector or matrix.

n

The number of samples to draw.

method

The method to use for sampling.

kde

The kernel density estimate to use for sampling.

seed

The seed to use for sampling.

...

Additional arguments to pass to the density function.