Two scores are considered similar if the relative "error" of them is smaller than defaulMaxRelativeDiff.
The relative error is defined as:
relError(a, b) = abs(a - b)/max(a - b)
**Implementation note:** all computations are done in integer arithmetic hence AlignmentChain.maxScore corresponds to 1 in the above equation.
See Source File
Two scores are considered similar if the relative "error" of them is smaller than defaulMaxRelativeDiff.
The relative error is defined as:
relError(a, b) = abs(a - b)/max(a - b)
**Implementation note:** all computations are done in integer arithmetic hence AlignmentChain.maxScore corresponds to 1 in the above equation.