UNPKG

ml-distance

Version:

Distance and similarity functions to compare vectors

10 lines 387 B
import { NumberArray } from 'cheminfo-types'; /** *Returns the Lorentzian distance between vectors a and b * @link [Lorentzian algorithm](https://stat.ethz.ch/education/semesters/ss2012/ams/slides/v4.2.pdf) * @param a - first vector * @param b - second vector * */ export default function lorentzian(a: NumberArray, b: NumberArray): number; //# sourceMappingURL=lorentzian.d.ts.map