Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | Properties | List of all members
SpellChecker.Net.Search.Spell.JaroWinklerDistance Class Reference

Inherits SpellChecker.Net.Search.Spell.StringDistance.

Public Member Functions

float GetDistance (String s1, String s2)
 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.
 

Properties

float Threshold [get, set]
 Gets or sets the current value of the threshold used for adding the Winkler bonus. Set to a negative value to get the Jaro distance. The default value is 0.7.
 

Detailed Description

Definition at line 26 of file JaroWinklerDistance.cs.

Member Function Documentation

float SpellChecker.Net.Search.Spell.JaroWinklerDistance.GetDistance ( String  s1,
String  s2 
)

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
s1The first string.
s2The 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 108 of file JaroWinklerDistance.cs.

Property Documentation

float SpellChecker.Net.Search.Spell.JaroWinklerDistance.Threshold
getset

Gets or sets the current value of the threshold used for adding the Winkler bonus. Set to a negative value to get the Jaro distance. The default value is 0.7.

Definition at line 126 of file JaroWinklerDistance.cs.


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