C# Class SpellChecker.Net.Search.Spell.TRStringDistance

Edit distance class
Show file Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
GetDistance ( System other ) : int
TRStringDistance ( System target )

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.

Private Methods

Method Description
Form ( int n, int m ) : int[][]

Min3 ( int a, int b, int c ) : int

Method Details

GetDistance() public method

public GetDistance ( System other ) : int
other System
return int

TRStringDistance() 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 TRStringDistance ( System target )
target System