public class CosineSimilarityFingerprintMatcher extends FingerprintMatcher
matcherName, minimum_score
Constructor and Description |
---|
CosineSimilarityFingerprintMatcher()
Constructor that sets the minimum score to use for matching two fingerprints to zero
|
CosineSimilarityFingerprintMatcher(int score)
Constructor that sets the minimum score to use for matching two fingerprints
|
CosineSimilarityFingerprintMatcher(java.lang.String score)
Constructor that sets the minimum score to use for matching two fingerprints.
|
Modifier and Type | Method and Description |
---|---|
int |
getScore(byte[] fp1,
byte[] fp2)
Determines the cosine similarity score for these two fingerprints
|
static void |
main(java.lang.String[] args) |
boolean |
match(byte[] fp1,
byte[] fp2)
Determines that the two fingerprints are matching if their similarity score is at or above the minimum score for
this fingerprinter
|
getMatcherName, getMinimumScore, getScoreXML, match, setMinimumScore
public CosineSimilarityFingerprintMatcher()
public CosineSimilarityFingerprintMatcher(int score)
score
- the minimum score needed to be considered a matchpublic CosineSimilarityFingerprintMatcher(java.lang.String score)
score
- the string value of the minimum score needed to be considered a matchpublic boolean match(byte[] fp1, byte[] fp2)
match
in class FingerprintMatcher
fp1
- the byte array containing the first fingerprintfp2
- the byte array containing the second fingerprintpublic int getScore(byte[] fp1, byte[] fp2)
getScore
in class FingerprintMatcher
fp1
- the byte array containing the first fingerprintfp2
- the byte array containing the second fingerprintpublic static void main(java.lang.String[] args)