KMeansClusteringAlgorithm: KMeans

Description Usage Arguments Value Examples

Description

KMeans clustering algorithm

Usage

1
KMeans(train, num_clusters)

Arguments

train

matrix of train features

num_clusters

number of clusters desired

Value

cl list containing the clusters ownerships

Examples

1
2
3
4
#use the initFeatures to upload train feature matrix
#see also KSeedsClusters function to see a similar example
#with a toy matrix
#cl<-KMeans(train,num_clusters)

DrugClust documentation built on May 30, 2017, 2:30 a.m.