EMCluster | R Documentation |
This function perform EM algorithm for model-based clustering of finite mixture multivariate Gaussian distribution.The general purpose of clustering is to detect clusters of data and to assign the data to the clusters.
EMCluster(data = NULL, ...)
data |
A Data set |
... |
k: The number of Clusters |
A list of cluster labels and a returned object from init.EM
library(datasets) data(iris) rndSamples <- sample(nrow(iris),100) trainData <- iris[rndSamples,] testData <- iris[-rndSamples,] clsut <- EMCluster(trainData[,1:4],3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.