xapian-core
1.5.0
|
Class for calculating the cosine distance between two documents. More...
Public Member Functions | |
double | similarity (const PointType &a, const PointType &b) const |
Calculates and returns the cosine similarity using the formula cos(theta) = a.b/(|a|*|b|) | |
std::string | get_description () const |
Return a string describing this object. | |
![]() | |
virtual | ~Similarity () |
Destructor. | |
Class for calculating the cosine distance between two documents.