probly.representation.distribution.mixture_gaussian

Mixture distribution for Gaussian components.

Classes

ArrayGaussianMixture(components, weights)

Gaussian mixture.

class probly.representation.distribution.mixture_gaussian.ArrayGaussianMixture(components, weights)[source]

Bases: object

Gaussian mixture.

Parameters:
sample(num_samples, rng=None)[source]

Draw samples from the Gaussian mixture. Returns an ArraySample.

Parameters:
Return type:

ArraySample

property T: Self

The transposed version of the mixture components.

components: Sequence[ArrayGaussian]
property device: str

The device of the underlying array.

property dtype: DTypeLike

The data type of the underlying array.

property ndim: int

The number of dimensions of the underlying array.

property shape: tuple[int, ...]

The shape of the underlying array.

property size: int

The total number of elements in the underlying array.

weights: np.ndarray