| superpose_kde | R Documentation |
Smooth Bayesian-information-criterion Gaussian-mixture base (broad components) plus a
band-limited de-heaped residual on the leftover mass; the base carries the non-identifiable
band beyond pi/D.
superpose_kde(y, D, grid, seed = 20260627)
y |
heaped (rounded) sample. |
D |
grid width. |
grid |
evaluation grid (equally spaced). |
seed |
random seed for the jitter dequantization. |
Density values on grid.
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 <- superpose_kde(1.0 * round(x / 1.0), 1.0, grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.