View source: R/curve_constructors.R
Lognormal | R Documentation |
This creates a Curve object for a Log-normal distribution.
Curve objects contain all necessary information to describe a distribution, including functions and parameters describing it.
Parameterisation follows that used by plnorm etc. See Details for more information on parameterisation.
Lognormal(mu, sigma = 1)
mu |
Mean (on log scale) parameter for Log-normal distribution. |
sigma |
Standard deviation (on log scale) parameter for Log-normal distribution. |
The log normal distribution has parameterisation:
f(x) = 1/(sqrt(2*pi) sigma x) e^-((log x - mu)^2 / (2 sigma^2))
F(x) = 0.5(1 + erf((log(x)-mu)/(sigma sqrt(2))))
where erf is the error function.
James Bell
Lognormal(mu=5,sigma=1.2)
Lognormal(6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.