Contour levels and sizes.
1 2 3 4 5 6 7
an object of class
vector of probabilities corresponding to highest density regions
vector of percentages which correspond to the complement
vector of absolute contour levels
number of pretty contour levels
flag to compute approximate contour levels. Default is TRUE.
contourLevels, the most straightforward is to specify
prob. Heights of
the corresponding highest density region with probability
cont parameter here is consistent with
cont parameter from
cont are missing then a pretty set of
nlevels contours are computed.
contourSizes, the approximate Lebesgue measures are approximated by Riemann sums. Thsese are rough approximations and depend highly on the estimation grid, and so should
be interpreted carefully.
approx=FALSE, then the exact KDE is computed. Otherwise
it is interpolated from an existing KDE grid. This can dramatically
reduce computation time for large data sets.
kde objects, returns vector of heights. For
objects, returns a list of vectors, one for each training group.
contourSizes, an approximation of the Lebesgue measure of
level set, i.e. length (d=1), area (d=2), volume (d=3), hyper-volume (d>4).
1 2 3 4 5 6
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.