UNPKG

ml-distance

Version:

Distance and similarity functions to compare vectors

11 lines 494 B
import { NumberArray } from 'cheminfo-types'; /** *Returns the Tanimoto similarity between vectors p and q, and accepts the bitVector use, see the test case for an example * @link [Tanimoto similarity algorithm](https://www.naun.org/main/NAUN/ijmmas/mmmas-49.pdf) * @param a - first vector * @param b - second vector * @param bitvector - bitVector * */ export default function tanimoto(a: NumberArray, b: NumberArray, bitvector?: boolean): number; //# sourceMappingURL=tanimoto.d.ts.map