C# Class DuoVia.FuzzyStrings.DiceCoefficientExtensions

ファイルを表示 Open project: Helmut-Ortmann/EnterpriseArchitect_hoTools

Public Methods

Method Description
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[]

Private Methods

Method Description
ToNGrams ( string input, int nLength ) : string[]

Method Details

DiceCoefficient() public static method

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
return double

ToBiGrams() public static method

public static ToBiGrams ( this input ) : string[]
input this
return string[]

ToTriGrams() public static method

public static ToTriGrams ( this input ) : string[]
input this
return string[]