Skip to contents

Lognormal distribution with log-scale mean meanlog and sd sdlog, parameterized as in stats::dlnorm(). Parameters are read-only properties: d@meanlog, d@sdlog.

Usage

lognormal(meanlog, sdlog, ptr = NULL)

Arguments

meanlog

Mean of log(X); finite.

sdlog

Standard deviation of log(X); finite and positive.

ptr

Internal: an existing object to wrap.

Value

A lognormal object, which inherits from distribution.

See also

lognormal_from_mean_cv() to parameterize by mean and CV.

Examples

d <- lognormal(7, 0.5)
mean(d)
#> [1] 1242.648
quantile(d, c(0.5, 0.995))
#> [1] 1096.633 3975.535
d@sdlog
#> [1] 0.5