Calculates the mean of distance from each point to the geometric center (centroid)
Arguments
- xyz
A data.frame with x, y, z coordinates.
Value
The mean of squared Euclidean distance to the centroid.
Examples
xyz <- matrix(seq.int(12), ncol = 3, dimnames=list(NULL, c('x', 'y', 'z')))
SDC(xyz)
#> [1] 3.75