OECosine

float OECosine(const OEFingerPrint &fpA, const OEFingerPrint &fpB)

Calculates the Cosine similarity value of two OEFingerPrint objects.

Formula:

\(Sim_{Cosine}(A,B) = \frac{bothAB}{\sqrt{(onlyA + bothAB) * (onlyB + bothAB)}}\)

See also