Learn R Programming

fclust (version 2.1.1.1)

cl.size.H: Cluster size

Description

Produces the sizes of the clusters in the hard clustering sense (objects are considered to be assigned to clusters only if the corresponding membership degree are >=0.5).

Usage

cl.size.H (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 provided that such a maximal membership degree is >=0.5, otherwise it is assumed that an object is not assigned to any cluster.

See Also

cl.size

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)
## cluster size in the hard clustering sense
clus.size=cl.size.H(U)

Run the code above in your browser using DataLab