#include <CosSim.hpp>
Inheritance diagram for CosSim:

Public Methods | |
| CosSim (const Index &dbIndex) | |
| Precomputes the idf values for the collection. | |
| virtual | ~CosSim () |
| clean up | |
| void | weigh (ClusterRep *rep) const |
| normalize rep with idf values. | |
| double | similarity (const ClusterRep *vec1, const ClusterRep *vec2) const |
| compute similarity between two reps. | |
| const double * | idfValues () const |
| return pointer to precomputed idf values. | |
Protected Attributes | |
| const Index & | ind |
| double * | idfV |
| int | numDocs |
| int | numTerms |
|
|
Precomputes the idf values for the collection. Cosine similarity method. Precomputes the idf values for the collection. |
|
|
clean up
|
|
|
return pointer to precomputed idf values.
|
|
||||||||||||
|
compute similarity between two reps.
Implements SimilarityMethod. |
|
|
normalize rep with idf values.
Reimplemented from SimilarityMethod. |
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18