Class LevensteinDistance
Levenstein edit distance class.
Inheritance
System.Object
    LevensteinDistance
  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 sealed class LevensteinDistance : IStringDistance
  Constructors
| Improve this Doc View SourceLevensteinDistance()
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.
Declaration
public LevensteinDistance()
  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 float GetDistance(string target, string other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | target | |
| System.String | other | 
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()