Description Usage Arguments Details Value Author(s) References Examples
Density, cumulative distribution, quantile functions and random number generation for the folded normal distribution with the location parameter mu and the scale sigma (which corresponds to standard deviation in normal distribution).
1 2 3 4 5 6 7 |
q |
vector of quantiles. |
mu |
vector of location parameters (means). |
sigma |
vector of scale parameters. |
log |
if |
p |
vector of probabilities. |
n |
number of observations. Should be a single number. |
The distribution has the following density function:
f(x) = 1/sqrt(2 pi) (exp(-(x-mu)^2 / (2 sigma^2)) + exp(-(x+mu)^2 / (2 sigma^2)))
Both pfnorm
and qfnorm
are returned for the lower
tail of the distribution.
Depending on the function, various things are returned (usually either vector or scalar):
dfnorm
returns the density function value for the
provided parameters.
pfnorm
returns the value of the cumulative function
for the provided parameters.
qfnorm
returns quantiles of the distribution. Depending
on what was provided in p
, mu
and sigma
, this
can be either a vector or a matrix, or an array.
rfnorm
returns a vector of random variables
generated from the fnorm distribution. Depending on what was
provided in mu
and sigma
, this can be either a vector
or a matrix or an array.
Ivan Svetunkov, [email protected]
Wikipedia page on folded normal distribution: https://en.wikipedia.org/wiki/Folded_normal_distribution.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.