clres
is the result of a clustering algorithm of class such
as "fclust".
This function is calculating the values of several validity
measures. The values of the indexes can be independenly used in order
to evaluate and compare clustering partitions or even to determine
the number of clusters existing in a data set.validity.measures( clres, x, index = "all" )
cmeanscl
# a 2-dimensional example
x<-rbind(matrix(rnorm(100,sd=0.3),ncol=2),
matrix(rnorm(100,mean=1,sd=0.3),ncol=2))
cl<-cmeanscl(x,2,20,verbose=TRUE,method="cmeans")
resultindexes <- validity.measures(cl,x, index="all")
resultindexes
Run the code above in your browser using DataLab