Distributions¶
Common Gaussian-family classes are documented under Top-level API. This
page documents Gaussian-family metadata objects that are available from
gmm_divergence.distributions but are not exported at the root.
gmm_divergence.distributions
¶
Public distribution API.
CombinedGaussianMixture
dataclass
¶
CombinedGaussianMixture(mixture: GaussianMixture, mapping: MixtureMapping)
Wrapper dataclass for a combined GaussianMixture.
MixtureMapping
dataclass
¶
local_component_index
instance-attribute
¶
Component index within the original input mixture for each flattened output component.
source_index
instance-attribute
¶
Index of the original input distribution for each flattened output component.
component_of
¶
Return the flattened component of given source input and local component.
Returns:
-
int–The flattened component index corresponding to the specified source input and local component.
Source code in src/gmm_divergence/distributions/_combine.py
source_of
¶
Return source input and local component index for flattened component.
Returns:
-
tuple[int, int]–(input_index, local_component_index).