| adkde | R Documentation |
The single tuning-free estimator. A band-capacity statistic (de-heaped in-band power in the outer quarter of the identifiable band) selects the de-heaping estimator when the density fits inside the band, the superposition when it exceeds the band, and the iterated superposition at the coarsest grids.
adkde(y, D, grid, rho_lo = 0.06, rho_hi = 0.14, seed = 20260627)
y |
heaped (rounded) sample. |
D |
grid width. |
grid |
evaluation grid (equally spaced). |
rho_lo, rho_hi |
band-capacity thresholds selecting the component. |
seed |
random seed passed to the superposition components. |
Density values on grid, with attributes pick (the selected component)
and rho (the band-capacity statistic).
grid <- seq(-6, 6, length.out = 1024)
x <- ifelse(runif(2000) < 0.5, rnorm(2000, -1.2, 0.5), rnorm(2000, 1.2, 0.5))
f <- adkde(0.5 * round(x / 0.5), 0.5, grid)
attr(f, "pick")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.