public interface FuzzyCost<T>
Modifier and Type | Method and Description |
---|---|
double |
getDeletionCost(T mainValue,
T secondaryValue)
Returns the cost for inserting an empty space in the secondary string, before b.
|
double |
getInsertionCost(T mainValue,
T secondaryValue)
Returns the cost for inserting an empty space in the main string, before a.
|
double |
getMatchCost(T mainValue,
T secondaryValue)
Returns the cost for matching a and b.
|
double |
getSubstitutionCost(T mainValue,
T secondaryValue)
Returns the cost for substituting b into a.
|
double getMatchCost(T mainValue, T secondaryValue)
mainValue
- The value from the main element being comparedsecondaryValue
- The value from the secondary element being compareddouble getInsertionCost(T mainValue, T secondaryValue)
mainValue
- The value from the main element being comparedsecondaryValue
- The value from the secondary element being compareddouble getDeletionCost(T mainValue, T secondaryValue)
mainValue
- The value from the main element being comparedsecondaryValue
- The value from the secondary element being compareddouble getSubstitutionCost(T mainValue, T secondaryValue)
mainValue
- The value from the main element being comparedsecondaryValue
- The value from the secondary element being compared