pybop.parameters.priors#
Module Contents#
Classes#
Represents an exponential distribution with a specified scale parameter. |
|
Represents a Gaussian (normal) distribution with a given mean and standard deviation. |
|
Represents a uniform distribution over a specified interval. |
- class pybop.parameters.priors.Exponential(scale)[source]#
Represents an exponential distribution with a specified scale parameter.
This class provides methods to calculate the pdf, the log pdf, and to generate random variates from the distribution.
- Parameters:
scale (float) – The scale parameter (lambda) of the exponential distribution.
- logpdf(x)[source]#
Calculates the logarithm of the pdf of the exponential distribution at x.
- Parameters:
x (float) – The point at which to evaluate the log pdf.
- Returns:
The log of the probability density function value at x.
- Return type:
float
- class pybop.parameters.priors.Gaussian(mean, sigma)[source]#
Represents a Gaussian (normal) distribution with a given mean and standard deviation.
This class provides methods to calculate the probability density function (pdf), the logarithm of the pdf, and to generate random variates (rvs) from the distribution.
- Parameters:
mean (float) – The mean (mu) of the Gaussian distribution.
sigma (float) – The standard deviation (sigma) of the Gaussian distribution.
- logpdf(x)[source]#
Calculates the logarithm of the probability density function of the Gaussian distribution at x.
- Parameters:
x (float) – The point at which to evaluate the log pdf.
- Returns:
The logarithm of the probability density function value at x.
- Return type:
float
- class pybop.parameters.priors.Uniform(lower, upper)[source]#
Represents a uniform distribution over a specified interval.
This class provides methods to calculate the pdf, the log pdf, and to generate random variates from the distribution.
- Parameters:
lower (float) – The lower bound of the distribution.
upper (float) – The upper bound of the distribution.
- logpdf(x)[source]#
Calculates the logarithm of the pdf of the uniform distribution at x.
- Parameters:
x (float) – The point at which to evaluate the log pdf.
- Returns:
The log of the probability density function value at x.
- Return type:
float