Runs stats::kmeans() on the supplied samples and uses the resulting
cluster centres and within-cluster covariances to seed an EM-style
fitter.
Arguments
- samples
An
nbypnumeric matrix of samples from (or close to) the target.- N
Number of components.
- ridge_eps
Ridge added to each cluster covariance for numerical stability when a cluster has fewer than two points.
- nstart
stats::kmeansnstartargument.
Value
A gmm of N components in dimension ncol(samples).
See also
Other init:
init_moment_seed(),
init_random(),
init_warm_start(),
multi_start_best_of()