Interface CharacterInsDelInterface
-
public interface CharacterInsDelInterface
As an adjunct to CharacterSubstitutionInterface, this interface allows you to specify the cost of deletion or insertion of a character.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
deletionCost(char c)
double
insertionCost(char c)
-
-
-
Method Detail
-
deletionCost
double deletionCost(char c)
- Parameters:
c
- The character being deleted.- Returns:
- The cost to be allocated to deleting the given character, in the range [0, 1].
-
insertionCost
double insertionCost(char c)
- Parameters:
c
- The character being inserted.- Returns:
- The cost to be allocated to inserting the given character, in the range [0, 1].
-
-