public class ApproxNeedlemanWunsch extends AbstractStringDistance
| Constructor and Description |
|---|
ApproxNeedlemanWunsch() |
ApproxNeedlemanWunsch(CharMatchScore charMatchScore,
double gapCost) |
| Modifier and Type | Method and Description |
|---|---|
String |
explainScore(StringWrapper s,
StringWrapper t)
This method needs to be implemented by subclasses.
|
int |
getAlignedChar(int iMinusOne,
boolean preferHigherIndices)
Find a character in the first string, s, that can be aligned
with the i-th character in the second string, t.
|
static void |
main(String[] argv) |
double |
score(StringWrapper s,
StringWrapper t)
This method needs to be implemented by subclasses.
|
void |
setWidth(int w) |
addExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, prepare, prepare, score, setDistanceInstancePool, setStringWrapperPoolpublic ApproxNeedlemanWunsch()
public ApproxNeedlemanWunsch(CharMatchScore charMatchScore, double gapCost)
public void setWidth(int w)
public double score(StringWrapper s, StringWrapper t)
AbstractStringDistancescore in interface StringDistancescore in class AbstractStringDistancepublic String explainScore(StringWrapper s, StringWrapper t)
AbstractStringDistanceexplainScore in interface StringDistanceexplainScore in class AbstractStringDistancepublic int getAlignedChar(int iMinusOne,
boolean preferHigherIndices)
Copyright © 2016. All rights reserved.