UNPKG

@thi.ng/vectors

Version:

Optimized 2d/3d/4d and arbitrary length vector operations, support for memory mapping/layouts

17 lines 553 B
import type { DistanceFn } from "./api.js"; /** * Returns the inverse Jaccard similarity, i.e. as distance rather than * similarity. Returns a value in `[0,1]` interval: 0.0 if `a` and `b` are * equal, or 1.0 if none of the components match. * * @remarks * The sizes of both input vectors MUST be equal. All non-zero vector component * values are treated equal. * * Reference: https://en.wikipedia.org/wiki/Jaccard_index * * @param a - * @param b - */ export declare const distJaccard: DistanceFn; //# sourceMappingURL=dist-jaccard.d.ts.map