Learn R Programming

fclust (version 1.0.1)

SIL: Silhouette index

Description

Produces the silhouette index. The optimal number of cluster k is achieved when the index value is maximized.

Usage

SIL (Xca, U)

Arguments

Xca
Matrix or data.frame
U
Membership degree matrix

Value

  • sil.objVector containing the silhouette indices for all the objects
  • silValue of the silhouette index (mean of sil.obj)

References

Kaufman L., Rousseeuw P.J., 1990. Finding Groups in Data: An Introduction to Cluster Analysis. Wiley, New York.

See Also

PC, PE, MPC, SIL.F, XB, Fclust

Examples

Run this code
data(Mc)
for (j in 2:(ncol(Mc)-1))
Mc[,j]=Mc[,j]/Mc[,1]
Mc=Mc[,-1]
clust=FKM(Mc[,1:(ncol(Mc)-1)],k=6,m=1.5,stand=1)
sil=SIL(clust$Xca,clust$U)

Run the code above in your browser using DataLab