Method SingleToEdits
SingleToEdits(Single, Int32)
Helper function to convert from deprecated "minimumSimilarity" fractions to raw edit distances.
NOTE: this was floatToEdits() in Lucene
Declaration
public static int SingleToEdits(float minimumSimilarity, int termLen)
Parameters
Type | Name | Description |
---|---|---|
System.Single | minimumSimilarity | Scaled similarity |
System.Int32 | termLen | Length (in unicode codepoints) of the term. |
Returns
Type | Description |
---|---|
System.Int32 | Equivalent number of maxEdits |