View source: R/DeregulariseByAlpha.R
DeregulariseByAlpha | R Documentation |
If possible, deregularises the input density y
to have minimum density value is alpha
. See details.
DeregulariseByAlpha(x, y, alpha = 0)
x |
support of the density |
y |
values of the density |
alpha |
scalar to deregularise with (default = 0) - this will be the minimum value of the deregularised density, unless |
If min(y) <= alpha
, or y
is the uniform distribution, no deregularisation is performed and y
is returned. If min(y)*diff(range(x)) > 1
,
the deregularisation is not possible and an error is thrown. Otherwise, the deregularised density in an inverse manner to RegulariseByAlpha
.
dens density values on x
RegulariseByAlpha
x = seq(0,1,length.out=122)
y = seq(0.1,1.9,length.out=122)
z = DeregulariseByAlpha(x=x, y=y, alpha = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.