| heap_fraction | R Documentation |
Under partial heaping the leading tooth has height about p^2 over the residue floor,
so phat = sqrt(S_peak - floor).
heap_fraction(y, D, grid)
y |
heaped (rounded) sample. |
D |
grid width. |
grid |
evaluation grid (equally spaced). |
The estimated heaped fraction in [0, 1].
grid <- seq(-6, 6, length.out = 2048)
x <- rnorm(4000); heaped <- runif(4000) < 0.4
y <- x; y[heaped] <- round(x[heaped])
heap_fraction(y, 1.0, grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.