C# Класс Spontaneuos.Lib.SiftStringSimilarity.StringSift3

Computes the distance and similarity between two strings a lot faster than Levenshtein
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Distance ( string s1, string s2 ) : float

Calculate a distance similar to Levenstein, but faster and less reliable.

Similarity ( string s1, string s2 ) : float

Calculate the similarity of two strings, as a percentage.

StringSift3 ( ) : System

Instantiate the class with a default value of MaxOffset=5

StringSift3 ( int maxOffset ) : System

MaxOffset represents the maximum range the algorithm searches for the same character It is cheaper to replace a character rather than move it from a distance larger than MaxOffset.

Описание методов

Distance() публичный Метод

Calculate a distance similar to Levenstein, but faster and less reliable.
public Distance ( string s1, string s2 ) : float
s1 string
s2 string
Результат float

Similarity() публичный Метод

Calculate the similarity of two strings, as a percentage.
public Similarity ( string s1, string s2 ) : float
s1 string
s2 string
Результат float

StringSift3() публичный Метод

Instantiate the class with a default value of MaxOffset=5
public StringSift3 ( ) : System
Результат System

StringSift3() публичный Метод

MaxOffset represents the maximum range the algorithm searches for the same character It is cheaper to replace a character rather than move it from a distance larger than MaxOffset.
public StringSift3 ( int maxOffset ) : System
maxOffset int
Результат System