Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
SpellChecker.Net.Search.Spell.LevenshteinDistance Class Reference

Levenshtein edit distance More...

Inherits SpellChecker.Net.Search.Spell.StringDistance.

Public Member Functions

float GetDistance (String target, String other)
 Returns a float between 0 and 1 based on how similar the specified strings are to one another. Returning a value of 1 means the specified strings are identical and 0 means the string are maximally different.
 

Detailed Description

Levenshtein edit distance

Definition at line 28 of file LevenshteinDistance.cs.

Member Function Documentation

float SpellChecker.Net.Search.Spell.LevenshteinDistance.GetDistance ( String  target,
String  other 
)

Returns a float between 0 and 1 based on how similar the specified strings are to one another. Returning a value of 1 means the specified strings are identical and 0 means the string are maximally different.

Parameters
targetThe first string.
otherThe second string.
Returns
a float between 0 and 1 based on how similar the specified strings are to one another.

Implements SpellChecker.Net.Search.Spell.StringDistance.

Definition at line 38 of file LevenshteinDistance.cs.


The documentation for this class was generated from the following file: