fiftyone.mobile.detection
Class BaseScore
java.lang.Object
fiftyone.mobile.detection.BaseScore
- Direct Known Subclasses:
- ClosestScore, NearestScore
abstract class BaseScore
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseScore
BaseScore()
getScore
protected abstract int getScore(Match match,
Node node)
throws IOException
- Gets the score for the specific node of the signature.
- Parameters:
match - node -
- Returns:
-
- Throws:
IOException
getInitialScore
protected abstract int getInitialScore(Match match,
Signature signature,
int lastNodeCharacter)
throws IOException
- Sets any initial score before each node is evaluated.
- Parameters:
match - signature - lastNodeCharacter -
- Returns:
-
- Throws:
IOException
evaluateSignatures
void evaluateSignatures(Match match,
Match.RankedSignatureIterator closestSignatures)
throws IOException
- Throws:
IOException
evaluateSignature
private void evaluateSignature(Match match,
Signature signature,
int lastNodeCharacter)
throws IOException
- Throws:
IOException
getScore
private int getScore(Match match,
Signature signature,
int lastNodeCharacter)
throws IOException
- Throws:
IOException