#include <SimilarityMeasures.h>
Public Member Functions | |
WordPairComparison (int rank, const StringSimilarityMeasure *sm) | |
Constructor. | |
vector< double > | distrEstimate (int minLen, int maxLen, int nSamples=1000) const |
Estimates the distribution of the distances (similarities) between two randomly generated words. | |
double | comparePair (const Word &w1, const Word &w2, const vector< double > &measureDistr) const |
Compare the pair of words using probabilistic measure. | |
double | comparePair (const Word &w1, const Word &w2) const |
Compare the pair of words using similarity measure. | |
Private Member Functions | |
WordPairComparison (const WordPairComparison &) | |
WordPairComparison & | operator= (const WordPairComparison &) |
Private Attributes | |
const StringSimilarityMeasure * | pSSM |
int | theRank |
Basic Idea: ...
Definition at line 37 of file SimilarityMeasures.h.
|
Constructor.
Definition at line 45 of file SimilarityMeasures.h. |
|
|
|
Compare the pair of words using similarity measure.
|
|
Compare the pair of words using probabilistic measure.
|
|
Estimates the distribution of the distances (similarities) between two randomly generated words.
|
|
|
|
Definition at line 76 of file SimilarityMeasures.h. |
|
Definition at line 77 of file SimilarityMeasures.h. |