public class SequenceMatchingCostLinear extends SequenceMatchingCost
SequenceMatchingCost.distMatch
;SequenceMatchingCost.distMismatch
].
The approximate costs is a return value of a continuous function from the interval
[SequenceMatchingCost.matchExact
;SequenceMatchingCost.matchApprox
].Modifier and Type | Field and Description |
---|---|
static SequenceMatchingCost |
DEFAULT
The same setting as
SequenceMatchingCost.SIFT_DEFAULT |
distMatch, distMismatch, gapContinue, gapOpening, matchApprox, matchExact, matchMismatch, SIFT_DEFAULT
Constructor and Description |
---|
SequenceMatchingCostLinear() |
SequenceMatchingCostLinear(float gapOpen,
float gapCont,
float match,
float semimatch,
float mismatch,
float matchDist,
float mismatchDist) |
Modifier and Type | Method and Description |
---|---|
protected float |
getApproxCost(float dist) |
getCost, getCost, getGapContinue, getGapOpening, getMatchApprox, getMatchExact, getMatchMismatch, getMaxCost
public static SequenceMatchingCost DEFAULT
SequenceMatchingCost.SIFT_DEFAULT
public SequenceMatchingCostLinear()
public SequenceMatchingCostLinear(float gapOpen, float gapCont, float match, float semimatch, float mismatch, float matchDist, float mismatchDist)
protected float getApproxCost(float dist)
getApproxCost
in class SequenceMatchingCost