Skip to content

squaredEuclideanDistance(first, second): number

Defined in: packages/distance/src/vector-distance.ts:88

Sum the squared coordinate differences. Takes O(n) time and O(1) space.

NumericVector

NumericVector

number

With INVALID_DIMENSION or NON_FINITE_COORDINATE.