Méthode | Description | |
---|---|---|
Distance ( string s1, string s2 ) : float |
Calculate a distance similar to Levenstein, but faster and less reliable.
|
|
Similarity ( string s1, string s2 ) : float |
Calculate the similarity of two strings, as a percentage.
|
|
StringSift3 ( ) : System |
Instantiate the class with a default value of MaxOffset=5
|
|
StringSift3 ( int maxOffset ) : System |
MaxOffset represents the maximum range the algorithm searches for the same character It is cheaper to replace a character rather than move it from a distance larger than MaxOffset.
|
public Distance ( string s1, string s2 ) : float | ||
s1 | string | |
s2 | string | |
Résultat | float |
public Similarity ( string s1, string s2 ) : float | ||
s1 | string | |
s2 | string | |
Résultat | float |
public StringSift3 ( int maxOffset ) : System | ||
maxOffset | int | |
Résultat | System |