cosine

open override fun cosine(v1: FloatArray, v2: FloatArray): Float

Returns the cosine similarity between the two vectors.


open override fun cosine(a: ByteArray, b: ByteArray): Float

Returns the cosine similarity between the two byte vectors.