uncheckedSquaredEuclideanDistance(
first,second,secondOffset?):number
Defined in: packages/distance/src/vector-distance.ts:24
Sum squared differences in coordinate order for inputs whose contract was checked by the caller.
The second vector may hold packed rows. Its window starts at secondOffset and has the length
of the first vector. The caller supplies finite coordinates and a valid offset and window.
Ordinary binary64 sums can overflow or lose subnormal terms. Takes O(n) time and O(1) space.
Parameters
Section titled “Parameters”second
Section titled “second”secondOffset?
Section titled “secondOffset?”number = 0
Returns
Section titled “Returns”number