Learn R Programming

fclust (version 2.1.1.1)

cl.memb: Cluster membership

Description

Produces a summary of the membership degree information.

Usage

cl.memb (U)

Value

info.U

Matrix containing the indexes of the clusters where the objects are assigned (row 1) and the associated membership degrees (row 2)

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. Therefore, it produces the closest hard clustering partition

See Also

cl.memb.H, cl.memb.t

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)
info.U=cl.memb(U)
## objects assigned to cluster 2
rownames(info.U[info.U[,1]==2,])

Run the code above in your browser using DataLab