withinClusterSS: Calculate within-cluster sum of squares

View source: R/clusterUtils.R

withinClusterSSR Documentation

Calculate within-cluster sum of squares

Description

Calculate within-cluster sum of squares

Usage

withinClusterSS(
  dataMatrix,
  classes,
  distMetric = list(name = "euclidean", rescale = F)
)

Arguments

dataMatrix

A matrix for which you wish to calculate the within cluster sum of squares distance between rows

classes

A vector of classes designating which rows belong to which class

distMetric

A list with the name of the distance metric and any parameters it might require

Value

A number indicating the sum of all within-cluster variation


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.