cosine

abstract fun cosine(v1: FloatArray, v2: FloatArray): Float

Returns the cosine similarity between the two vectors.


abstract fun cosine(a: ByteArray, b: ByteArray): Float

Returns the cosine similarity between the two byte vectors.