powered by
Produces the sizes of the clusters.
cl.size (U)
Vector containing the sizes of the clusters
Membership degree matrix
Paolo Giordani, Maria Brigida Ferraro, Alessio Serafini
An object is assigned to a cluster according to the maximal membership degree.
cl.size.H
n=20 k=3 ## randomly generated membership degree matrix U=matrix(runif(n*k,0,1), nrow=n, ncol=k) U=U/apply(U,1,sum) clus.size=cl.size(U)
Run the code above in your browser using DataLab