public interface Gap
The penalty returned must be non-positive value to be consistent with the results of the substitution function.
This class is immutable and thread-safe.
Substitution
,
Wikipedia - Gap
PenaltyModifier and Type | Method and Description |
---|---|
float |
max()
Returns the minimum value a gap can have.
|
float |
min()
Returns the maximum value a gap can have.
|
float |
value(int fromIndex,
int toIndex)
Returns the penalty for creating a gap from
fromIndex to
toIndex -1 . |
float value(int fromIndex, int toIndex)
fromIndex
to
toIndex -1
. The value must be non-positive.fromIndex
- index at which the gap startstoIndex
- index after the last gap entryfloat max()
float min()
Copyright © 2014–2018. All rights reserved.