Skip to content

manhattanDistance(first, second): number

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

Sum the absolute differences between corresponding coordinates. Takes O(n) time and O(1) space.

NumericVector

NumericVector

number

With INVALID_DIMENSION or NON_FINITE_COORDINATE.