Class JaroWinklerDistance
Similarity measure for short strings such as person names. See http://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance
Inheritance
System.Object
    JaroWinklerDistance
  Implements
Inherited Members
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
  Namespace: Lucene.Net.Search.Spell
Assembly: Lucene.Net.Suggest.dll
Syntax
public class JaroWinklerDistance : IStringDistance
  Constructors
| Improve this Doc View SourceJaroWinklerDistance()
Creates a new distance metric with the default threshold for the Jaro Winkler bonus (0.7)
Declaration
public JaroWinklerDistance()
  See Also
Properties
| Improve this Doc View SourceThreshold
Gets or sets the threshold used to determine when Winkler bonus should be used. The default value is 0.7. Set to a negative value to get the Jaro distance.
Declaration
public virtual float Threshold { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Single | 
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
Overrides
System.Object.Equals(System.Object)
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetDistance(String, String)
Declaration
public virtual float GetDistance(string s1, string s2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | s1 | |
| System.String | s2 | 
Returns
| Type | Description | 
|---|---|
| System.Single | 
GetHashCode()
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| System.Int32 | 
Overrides
System.Object.GetHashCode()
  
    |
    Improve this Doc
  
  
    View Source
  
  
  ToString()
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| System.String | 
Overrides
System.Object.ToString()