public class NFFTSyncMatch
extends java.lang.Object
Constructor and Description |
---|
NFFTSyncMatch(java.lang.String reference,
java.lang.String matchingStream) |
Modifier and Type | Method and Description |
---|---|
void |
addMatch(float startInReference,
float stopInReference,
float startInMatchingStream,
float stopInMatchinStream,
float score)
Add a match to the list.
|
float[] |
getMatch(int i)
returns an array with the following information
{startInReference, float stopInReference, float startInMatchingStream,float stopInMatchinStream,float score}
The score is the number of aligned matching fingerprints.
|
java.lang.String |
getMatchingStream() |
int |
getNumberOfMatches() |
java.lang.String |
getReferenceFileName() |
void |
removeMatchesWithLowerScores(float factor)
Removes matches with scores lower than x% of max score
|
void |
removeOverlappingMatchesWithLowerScores()
Finds and removes overlapping matches with lower scores.
|
public NFFTSyncMatch(java.lang.String reference, java.lang.String matchingStream)
public void addMatch(float startInReference, float stopInReference, float startInMatchingStream, float stopInMatchinStream, float score)
startInReference
- In seconds.stopInReference
- In seconds.startInMatchingStream
- In seconds.stopInMatchinStream
- In seconds.score
- The number of matching fingerprints.public float[] getMatch(int i)
i
- the match to returnpublic int getNumberOfMatches()
public java.lang.String getMatchingStream()
public java.lang.String getReferenceFileName()
public void removeOverlappingMatchesWithLowerScores()
public void removeMatchesWithLowerScores(float factor)
factor
- the factor to multiply the max score with. If it is 0.5 than everything under 50% of max score is removed.