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
-
Method Details
-
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].
-