Learn R Programming

fclust (version 1.0.1)

Fclust.index: Clustering indices

Description

Performs some clustering indices for choosing the optimal number of cluster k.

Usage

Fclust.index (fclust.obj, index, alpha)

Arguments

fclust.obj
Object of class fclust
index
Clustering indices: "PC" (partition coefficient), "PE" (partition entropy), "MPC" (modified partition coefficient), "SIL" (silhouette), "SIL.F" (fuzzy silhouette), "XB" (Xie and Beni index), "ALL" for all the indices (default: "ALL")
alpha
Weighting coefficient for the fuzzy silhouette index SIL.F (default: 1)

Value

  • out.indexVector containing the index values

See Also

PC, PE, MPC, SIL, 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)
out.index=Fclust.index(clust)

Run the code above in your browser using DataLab