Skip to contents

Calculates sums of squares for uni- or multi-dimensional numeric data using the distance matrix.

Usage

SS(data, ...)

Arguments

data

a numeric vector or n x k matrix or data frame.

...

arguments passed to dist().

Value

Returns a numeric vector of length 1.

Examples

data <- matrix(c(rnorm(50, 0, 1), rnorm(50, 5, 1)), ncol = 2, byrow = TRUE)
SS(data)
#> [1] 692.3234