Learn R Programming

fclust (version 2.1.1.1)

cl.memb.t: Cluster membership

Description

Produces a summary of the membership degree information according to a threshold.

Usage

cl.memb.t (U, t)

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

t

Threshold in [0,1] (default: 0)

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 >= t, otherwise it is assumed that an object is not assigned to any cluster (denoted by cluster index = 0 in row 1). The function can be useful to select the subset of objects clearly assigned to clusters (objects with maximal membership degrees >= t).

See Also

cl.memb, cl.memb.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)
## threshold t=0.6
info.U=cl.memb.t(U,0.6)
## objects clearly assigned to clusters
rownames(info.U[info.U[,1]!=0,])

Run the code above in your browser using DataLab