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

Levenstein edit distance class.
Inheritance: IStringDistance
ファイルを表示 Open project: apache/lucenenet

Public Methods

Method 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 method

public Equals ( object obj ) : bool
obj object
return bool

GetDistance() public method

public GetDistance ( string target, string other ) : float
target string
other string
return float

GetHashCode() public method

public GetHashCode ( ) : int
return int

LevensteinDistance() public method

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
return System

ToString() public method

public ToString ( ) : string
return string