If possible, regularises the input density
y to have minimum density value is
alpha. See details.
RegulariseByAlpha(x, y, alpha = 0.01)
support of the density
values of the density
scalar to regularise with (default = 0.01) - this will be the minimum value of the regularised density, unless
min(y) >= alpha or
y is the uniform distribution, no regularisation is performed and
y is returned. If
alpha*diff(range(x)) > 1,
the regularisation is not possible and an error is thrown. Otherwise, the regularised density is computed by adding an appropriate constant
followed by renormalisation to have integral 1.
dens density values on x
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.