Unpacks mixture weights, means, and covariance(s) from a parameter vector.
unpack_theta(theta, g, p, ncov = 1)A list with:
Mixture weights (length g).
List of g mean vectors.
Shared covariance matrix (ncov=1) or list of g covariance matrices (ncov=2).
Numeric vector as returned by pack_theta().
Integer: number of components.
Integer: dimension.
Integer: covariance structure; 1 for shared covariance, 2 for class-specific.