HammingDistanceCyclic Class Reference

Implements the Hamming distance between two cyclic words. More...

#include <SimilarityMeasures.h>

Inheritance diagram for HammingDistanceCyclic:

StringSimilarityMeasure List of all members.

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.

Detailed Description

Implements the Hamming distance between two cyclic words.

Definition at line 123 of file SimilarityMeasures.h.


Constructor & Destructor Documentation

HammingDistanceCyclic::HammingDistanceCyclic  )  [inline]
 

Definition at line 126 of file SimilarityMeasures.h.


Member Function Documentation

double HammingDistanceCyclic::measure const Word w1,
const Word w2
const [virtual]
 

Returns the hamming distance computed for all cyclic permutations of given words and scaled by the length of the longest word.

Parameters:
w1 - the first word
w2 - the second word
Returns:
the scaled Hamming distance between cyclic words.

Implements StringSimilarityMeasure.


The documentation for this class was generated from the following file:
Generated on Sun Dec 3 10:59:00 2006 for CRyptography And Groups (CRAG) by  doxygen 1.4.6