Packs mixture weights, means, and covariance(s) into a single numeric vector. Uses the last component as the baseline for mixture weights (g-1 logits stored).
pack_theta(pi_k, mu_k, Sigma, g, p, ncov = 1)Numeric vector with parameters packed.
Numeric vector of length g with mixture weights (positive, sum to 1).
List of length g; each element a numeric vector of length p (component means).
Covariance: if ncov = 1, a single p x p matrix;
if ncov = 2, a list of g p x p matrices.
Integer: number of components.
Integer: dimension.
Integer: covariance structure; 1 for shared covariance, 2 for class-specific.