Log-Normal

greybox.distributions.dlnorm(q, loc=0, scale=1, log=False)[source]

Log-Normal distribution density.

loc is the mean of the underlying normal on the log scale (meanlog), scale is the corresponding standard deviation (sdlog).

Parameters:
  • q (array_like) – Quantiles (must be positive).

  • loc (float) – Mean of the underlying normal distribution (on log scale).

  • scale (float) – Standard deviation of the underlying normal distribution.

  • log (bool) – If True, return log-density.

Returns:

Density values.

Return type:

array

greybox.distributions.plnorm(q, loc=0, scale=1)[source]

Log-Normal distribution CDF.

loc is the mean of the underlying normal on the log scale (meanlog), scale is the corresponding standard deviation (sdlog).

Parameters:
  • q (array_like) – Quantiles.

  • loc (float) – Mean of the underlying normal distribution.

  • scale (float) – Standard deviation of the underlying normal distribution.

Returns:

CDF values.

Return type:

array

greybox.distributions.qlnorm(p, loc=0, scale=1)[source]

Log-Normal distribution quantile function.

loc is the mean of the underlying normal on the log scale (meanlog), scale is the corresponding standard deviation (sdlog).

Parameters:
  • p (array_like) – Probabilities.

  • loc (float) – Mean of the underlying normal distribution.

  • scale (float) – Standard deviation of the underlying normal distribution.

Returns:

Quantile values.

Return type:

array