Flag for performing bootstrapping on x to get a better
estimate of the CDF. Defaults to TRUE.
samples
Sample size for bootstrapping. Defaults to 1e6. Ignored
when bootstrap = FALSE.
density
Flag for calculating kernel density estimates (KDE) instead
of histogram counts. Depends on the ks package for density estimation.
Defaults to FALSE.
binned
Flag for calculating binned KDE. Defaults to TRUE. Ignored
when density = FALSE.
grids
Size parameter for the estimation grid when density = TRUE.
Used to calculate the grid sizes for KDE bandwidth estimation (grids*10),
and grid size KDE estimation (bgridsize = grids if binned = TRUE else
gridsize = grids/10). Defaults to 1e4.
unit_range
Flag for unity data range (i.e., data is normalized
between 0 and 1). Defaults to FALSE.
seed
Seed for random number generator (for reproducible outcomes).
Defaults to NULL.
...
Other options relevant for distribution estimation.
Value
If density = FALSE, a function of class ecdf, inheriting from the
stepfun class, and hence inheriting a knots() method.
If density = TRUE, an object of class kcde which has the fields
eval.points and estimate necessary for calculating a map.