Learn R Programming

fclust (version 2.1.1.1)

cl.size: Cluster size

Description

Produces the sizes of the clusters.

Usage

cl.size (U)

Value

clus.size

Vector containing the sizes of the clusters

Arguments

U

Membership degree matrix

Author

Paolo Giordani, Maria Brigida Ferraro, Alessio Serafini

Details

An object is assigned to a cluster according to the maximal membership degree.

See Also

cl.size.H

Examples

Run this code
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