public class SampleIntegerAlignmentPricer extends AlignmentPricer<java.lang.Integer>
AlignmentPricer
for computing the cost of aligning integer values. In this sample implementation,
the cost of aligning two integers i1
and i2
is Math.abs(i1 - i2)
, i.e., it is the absolute
value of the difference between i1
and i2
. The cost of aligning an integer i
with a gap is
simply i
, i.e., the gap is essentially treated as a zero.Constructor and Description |
---|
SampleIntegerAlignmentPricer()
Constructs a new
SampleIntegerAlignmentPricer . |
alignmentCost
public SampleIntegerAlignmentPricer()
SampleIntegerAlignmentPricer
.