
Given a mean and standard deviation, solves for log normal distribution parameters meanlog and sdlog.
Source:R/utils_stats.R
parameterise_lnorm.RdGiven a mean and standard deviation, solves for log normal distribution parameters meanlog and sdlog.
Value
list object with the mean and standard deviation of the
distribution on the log scale. These are the rlnorm parameters meanlog
and sdlog used in the stats::rlnorm() function
Examples
log_rate <- parameterise_lnorm(mean = 0.002, sd = 0.0001)
flight_flux_min <- set_random("rlnorm",
meanlog = log_rate$mean,
sdlog = log_rate$sd)
sample_input(flight_flux_min)
#> [1] 0.001969485