ml-distance
Version:
Distance and similarity functions to compare vectors
10 lines • 366 B
TypeScript
import { NumberArray } from 'cheminfo-types';
/**
*Returns the Manhattan distance between vectors a and b
* @link [Manhattan algorithm](https://www.naun.org/main/NAUN/ijmmas/mmmas-49.pdf)
* @param a - first vector
* @param b - second vector
*
*/
export default function manhattan(a: NumberArray, b: NumberArray): number;
//# sourceMappingURL=manhattan.d.ts.map