withinClusterSS | R Documentation |
Calculate within-cluster sum of squares
withinClusterSS( dataMatrix, classes, distMetric = list(name = "euclidean", rescale = F) )
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 |
A number indicating the sum of all within-cluster variation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.