print.fclust {e1071}R Documentation

Print Number and Sizes of Clusters

Description

Prints the number of the clusters and the sizes of them.

Usage

print.fclust(clobj)

Arguments

clobj Object returned by a clustering algorithm such as cmeanscl

Author(s)

Friedrich Leisch, Andreas Weingessel and Evgenia Dimitriadou

See Also

cmeanscl,cshell,scaclust

Examples

# 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",m=2)
print(cl)

# a 3-dimensional example
x<-rbind(matrix(rnorm(150,sd=0.3),ncol=3),
         matrix(rnorm(150,mean=1,sd=0.3),ncol=3),
         matrix(rnorm(150,mean=2,sd=0.3),ncol=3))
cl<-cmeanscl(x,6,20,verbose=TRUE,method="cmeans")
print(cl)