/** * Compute cosine similarity between two vectors. * Returns a value in [-1, 1], where 1 = identical direction. Returns 0 for * empty or zero-norm vectors, and for vectors of different lengths (with a * one-time warning, see warnVectorLengthMismatch). */ export declare function cosineSimilarity(a: number[], b: number[]): number; /** * Compute the mean centroid of a list of vectors. * All vectors must have the same dimensionality. */ export declare function computeCentroid(vectors: number[][]): number[]; //# sourceMappingURL=cosine.d.ts.map