Implements the Hamming distance between two words. More...
#include <SimilarityMeasures.h>
Public Member Functions | |
| HammingDistance () | |
| double | measure (const Word &w1, const Word &w2) const |
| Returns the hamming distance scaled by the length of the longest word. | |
Implements the Hamming distance between two words.
Definition at line 108 of file SimilarityMeasures.h.
| HammingDistance::HammingDistance | ( | ) | [inline] |
Definition at line 111 of file SimilarityMeasures.h.
Returns the hamming distance scaled by the length of the longest word.
| w1 | - the first word | |
| w2 | - the second word |
Implements StringSimilarityMeasure.
1.6.1