Fits a GMM directly to a feature matrix using the EM algorithm.
Unlike cluster.gmm which operates on functional data,
this function works on arbitrary numeric feature matrices.
Usage
gmm.em(
features,
k,
cov.type = c("full", "diagonal", "spherical"),
max.iter = 100,
tol = 1e-06,
seed = 42
)Value
A list with components:
cluster— Integer vector of hard cluster assignments.membership— Posterior membership probability matrix (n x k).means— List of component mean vectors.weights— Mixing proportions.log.likelihood— Final log-likelihood.bic,icl— Model selection criteria.iterations— Number of EM iterations.