C# Class Lucene.Net.Search.Spell.LevensteinDistance

Levenstein edit distance class.
Inheritance: IStringDistance
Afficher le fichier Open project: apache/lucenenet

Méthodes publiques

Méthode Description
Equals ( object obj ) : bool
GetDistance ( string target, string other ) : float
GetHashCode ( ) : int
LevensteinDistance ( ) : System

Optimized to run a bit faster than the static GetDistance(). In one benchmark times were 5.3sec using ctr vs 8.5sec w/ static method, thus 37% faster.

ToString ( ) : string

Method Details

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetDistance() public méthode

public GetDistance ( string target, string other ) : float
target string
other string
Résultat float

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

LevensteinDistance() public méthode

Optimized to run a bit faster than the static GetDistance(). In one benchmark times were 5.3sec using ctr vs 8.5sec w/ static method, thus 37% faster.
public LevensteinDistance ( ) : System
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string