pyhs3.distributions.GaussianDist

class pyhs3.distributions.GaussianDist(*, name, mean, sigma, x)[source]

Gaussian (normal) probability distribution.

Implements the standard Gaussian probability density function:

\[f(x; \mu, \sigma) = \frac{1}{\sigma\sqrt{2\pi}} \exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right)\]
Parameters:
  • mean (str) – Parameter name for the mean (μ).

  • sigma (str) – Parameter name for the standard deviation (sigma).

  • x (str) – Input variable name.

  • name (str)

__init__(*, name, mean, sigma, x)[source]

Subclass of Distribution representing a Gaussian distribution.

Parameters:
  • name (str) – Name of the distribution.

  • mean (str) – Parameter name for the mean.

  • sigma (str) – Parameter name for the standard deviation.

  • x (str) – Input variable name.

name

Name of the distribution.

Type:

str

mean

Parameter name for the mean.

Type:

str

sigma

Parameter name for the standard deviation.

Type:

str

x

Input variable name.

Type:

str

parameters

list containing mean, sigma, and x.

Type:

list[str]

Methods

__init__(*, name, mean, sigma, x)

Subclass of Distribution representing a Gaussian distribution.

expression(distributionsandparameters)

Builds a symbolic expression for the Gaussian PDF.

from_dict(config)

Creates an instance of GaussianDist from a dictionary configuration.