Lightweight S7 class representing an N-component multivariate Gaussian
mixture on \(\mathbb{R}^p\). Use gmm() to construct, dgmm() / rgmm()
to evaluate or sample, and gmm_marginalise() / gmm_conditionalise()
for closed-form operations.
Arguments
- weights
Numeric vector of length
K, non-negative, summing to one.- means
List of length
K, each element a length-pnumeric vector.- covariances
List of length
K, each element ap-by-psymmetric positive-definite numeric matrix.- name
Optional human-readable name.
- metadata
Optional list of arbitrary metadata (regime tags, diagnostic snapshots, etc.).