powered by
Run the EM algorithm for clustering.
EM(d, clusters, model = "VVV", ...)
A clustering model obtained by EM.
The dataset (matrix or data.frame).
matrix
data.frame
Either an integer (the number of clusters) or a (vector) indicating the cluster to which each point is initially allocated.
vector
A character string indicating the model. The help file for mclustModelNames describes the available models.
mclustModelNames
Other parameters.
em, mstep, mclustModelNames
em
mstep
require (datasets) data (iris) EM (iris [, -5], 3) # Default initialization km = KMEANS (iris [, -5], k = 3) EM (iris [, -5], km$cluster) # Initialization with another clustering method
Run the code above in your browser using DataLab