Learn R Programming

Evacluster (version 0.1.0)

EMCluster: Expectation Maximization Clustering

Description

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.

Usage

EMCluster(data = NULL, ...)

Arguments

data

A Data set

k: The number of Clusters

Value

A list of cluster labels and a returned object from init.EM

Examples

Run this code
# NOT RUN {
library(datasets)
data(iris)

rndSamples <- sample(nrow(iris),100)
trainData <- iris[rndSamples,]
testData <- iris[-rndSamples,]

clsut <- EMCluster(trainData[,1:4],3)
# }

Run the code above in your browser using DataLab