/** * Computes the cosine distance (not similarity) between `a` and `b`. * * @category Metrics * @param {number[] | Float64Array} a * @param {number[] | Float64Array} b * @returns {number} The cosine distance between `a` and `b`. * @example * import { cosine } from "@saehrimnir/druidjs"; * const a = [1, 2, 3]; * const b = [4, 5, 6]; * const distance = cosine(a, b); // 0.9746318461970762 */ export function cosine(a: number[] | Float64Array, b: number[] | Float64Array): number; //# sourceMappingURL=cosine.d.ts.map