Calculate sample variance of 3D point distance from centroid
Source:R/point_3d_variance.R
point_3d_variance.Rd
Calculates sample variance of points' distances in 3D space from their centroid. This function is normally only used indirectly through `validate_get_twcv`.
Arguments
- point_matrix
An n-by-3 numerical matrix where each row corresponds to a single point in 3D space.
Details
The variance here is taken to mean the sum of variances for each dimension/axis: ∑ni=1(xi−xm)2+(yi−ym)2+(z−zm)2n−1 Where X/Y/Z represent one axis each, am represents the mean of all points' coordinates on an axis, and n represents the total number of points.