dot-calculateSilhouetteWidth: Calculate Silhouette Information of RAVs

.calculateSilhouetteWidthR Documentation

Calculate Silhouette Information of RAVs

Description

The silhouette value is a measure of how similar an object is to its own cluster (cohesion) compared to other clusters (separation). The silhouette width ranges from -1 to +1, where a high value indicates that the object is well matched to its own cluster and poorly matched to neighboring clusters.

Usage

.calculateSilhouetteWidth(dat, kmeansRes)

Arguments

dat

A matrix with all the top PCs from training data to be clustered.

kmeansRes

Output from stats::kmeans.

Value

Silhouette-class object, which is an n x 3 matrix with attributes.

See Also

kmeans


shbrief/PCAGenomicSignatures documentation built on May 3, 2023, 11:21 a.m.