C# Класс DuoVia.FuzzyStrings.DiceCoefficientExtensions

Показать файл Открыть проект

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

Метод Описание
DiceCoefficient ( this input, string comparedTo ) : double

Dice Coefficient based on bigrams.
A good value would be 0.33 or above, a value under 0.2 is not a good match, from 0.2 to 0.33 is iffy.

ToBiGrams ( this input ) : string[]
ToTriGrams ( this input ) : string[]

Приватные методы

Метод Описание
ToNGrams ( string input, int nLength ) : string[]

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

DiceCoefficient() публичный статический Метод

Dice Coefficient based on bigrams.
A good value would be 0.33 or above, a value under 0.2 is not a good match, from 0.2 to 0.33 is iffy.
public static DiceCoefficient ( this input, string comparedTo ) : double
input this
comparedTo string
Результат double

ToBiGrams() публичный статический Метод

public static ToBiGrams ( this input ) : string[]
input this
Результат string[]

ToTriGrams() публичный статический Метод

public static ToTriGrams ( this input ) : string[]
input this
Результат string[]