MultivariateNormalish
|
A multivariate Normal distribution built from and callable on ParameterArrays. |
Methods
Cumulative distribution function. |
|
Log of the cumulative distribution function. |
|
Log of the probability density function. |
|
Probability density function. |
|
|
Draw random samples from the distribution. |
Attributes
- class gumbi.arrays.MultivariateNormalish(mean: ParameterArray, cov: int | float | np.ndarray, **kwargs)
Bases:
multivariate_normal_frozen
A multivariate Normal distribution built from and callable on ParameterArrays.
In particular, this class takes care of transforming variables to/from “natural” space as necessary.
- Parameters:
mean (ParameterArray) – A ParameterArray containing the distribution mean, must be a single point
cov (float or np.array, default 1) – Covariance matrix of the distribution as a standard array or scalar (default one)
**kwargs – Additional keyword arguments passed to scipy.stats.multivariate_normal
- cdf(x: ParameterArray) float
Cumulative distribution function.
- Parameters:
x (ParameterArray) – Quantiles, with the last axis of x denoting the components.
- Return type:
array-like
- logcdf(x: ParameterArray) float
Log of the cumulative distribution function.
- Parameters:
x (ParameterArray) – Quantiles, with the last axis of x denoting the components.
- Return type:
array-like
- logpdf(x: ParameterArray) float
Log of the probability density function.
- Parameters:
x (ParameterArray) – Quantiles, with the last axis of x denoting the components.
- Return type:
array-like
- pdf(x: ParameterArray) float
Probability density function.
- Parameters:
x (ParameterArray) – Quantiles, with the last axis of x denoting the components.
- Return type:
array-like
- rvs(size=1, random_state=None) ParameterArray
Draw random samples from the distribution.
- Parameters:
size (int or array-like of ints) –
random_state (int) –
- Return type: