Top Description Methods
info.debatty.java.stringsimilarity

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

Modifier and TypeMethod and Description
public double

Returns:

The cost to be allocated to deleting the given character, in the range [0, 1].
deletionCost
(char
The character being deleted.
c
)

public double

Returns:

The cost to be allocated to inserting the given character, in the range [0, 1].
insertionCost
(char
The character being inserted.
c
)

Method Detail

deletionCostback to summary
public double deletionCost(char c)
Parameters
c:char

The character being deleted.

Returns:double

The cost to be allocated to deleting the given character, in the range [0, 1].

insertionCostback to summary
public double insertionCost(char c)
Parameters
c:char

The character being inserted.

Returns:double

The cost to be allocated to inserting the given character, in the range [0, 1].