pyrtid.utils.random_field.get_normalized_mean_from_lognormal_params#

pyrtid.utils.random_field.get_normalized_mean_from_lognormal_params(mean: float, std: float) float[source]#

Get the mean of the normalized log-normal distribution.

Let $X$ be log-normally distributed. Denote $mu_{X}$ and $sigma_{X}$ as the mean and standard deviation of $X$. The mean $mu$ of $log{X}$ is given by:

\[\mu = \ln\left(\frac{\mu_X^2}{\sqrt{\mu_X^2+\sigma_X^2}}\right)\]

See: https://en.wikipedia.org/wiki/Log-normal_distribution#Generation_and_parameters

Parameters
  • mean (float) – The mean of the log-normal distribution.

  • std (float) – The standard deviation of the log-normal distribution.

Returns

The mean of the normalized distribution.

Return type

float