Implements the Hamming distance between two cyclic words. More...
#include <SimilarityMeasures.h>
Public Member Functions | |
HammingDistanceCyclic () | |
double | measure (const Word &w1, const Word &w2) const |
Returns the hamming distance computed for all cyclic permutations of given words and scaled by the length of the longest word. |
Implements the Hamming distance between two cyclic words.
Definition at line 123 of file SimilarityMeasures.h.
HammingDistanceCyclic::HammingDistanceCyclic | ( | ) | [inline] |
Definition at line 126 of file SimilarityMeasures.h.
Returns the hamming distance computed for all cyclic permutations of given words and scaled by the length of the longest word.
w1 | - the first word | |
w2 | - the second word |
Implements StringSimilarityMeasure.