probly.representation.distribution.array_gaussian¶
Numpy-based Gaussian distribution representation.
Classes
|
Gaussian distribution with array parameters. |
- class probly.representation.distribution.array_gaussian.ArrayGaussian(mean=<property object>, var=<property object>, type='gaussian', allowed_types=(<class 'numpy.ndarray'>, <class 'numpy.generic'>, <class 'float'>, <class 'int'>))[source]¶
Bases:
GaussianDistributionGaussian distribution with array parameters.
- Parameters:
- classmethod from_parameters(mean, var, dtype=None)[source]¶
Create an ArrayGaussian from mean and variance parameters.
- Parameters:
mean (ArrayLike)
var (ArrayLike)
dtype (DTypeLike | None)
- Return type:
- sample(num_samples=1, rng=None)[source]¶
Draw samples and wrap them in an ArraySample (sample_axis=0).
- Parameters:
- Return type:
- property dtype: DTypeLike¶
The data type of the underlying array.