Levenshtein distance : The Levenshtein distance is a metric for measuring the amount of difference between two sequences (i.e., the so called edit distance). The Levenshtein distance between two strings
is given by the minimum number of operations needed to transform one
string into the other, where an operation is an insertion, deletion, or
substitution of a single character.http://en.wikipedia.org/wiki/Levenshtein_distanceMouse base gesture recognition: - Each letter is defined by a n ' 8-directions gesture sequence
- The mouse moves are saved with the same 8-directions sensibility
- A Levenshtein distance is calculated from each letter to the user moves
- The algorithm return the best candidate (lowest levenshtein cost)
|
|