Normal

greybox.distributions.dnorm(q, loc=0.0, scale=1.0, log=False)[source]

Normal distribution density.

For the normal distribution, loc is the mean (μ) and scale is the standard deviation (σ).

Parameters:
  • q (array_like) – Quantiles.

  • loc (float) – Location parameter (mean, μ).

  • scale (float) – Scale parameter (standard deviation, σ).

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

Returns:

Density values.

Return type:

array

greybox.distributions.pnorm(y, loc=0.0, scale=1.0, log=False, lower_tail=True)[source]

Normal distribution CDF.

Parameters:
  • y (array_like) – Quantiles.

  • loc (float) – Location parameter (mean).

  • scale (float) – Scale parameter (standard deviation).

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

  • lower_tail (bool) – If True, return lower tail probability.

Returns:

CDF values.

Return type:

array

greybox.distributions.qnorm(p, loc=0.0, scale=1.0)[source]

Normal distribution quantile function.

Parameters:
  • p (array_like) – Probabilities.

  • loc (float) – Location parameter (mean).

  • scale (float) – Scale parameter (standard deviation).

Returns:

Quantile values.

Return type:

array