public class CosineSimilarityFingerprintMatcher extends FingerprintMatcher
comparedFile, compareFile, fp1, fp2, minimum_score, 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
|
FingerprintMatcher |
getScore(Fingerprint fp1,
Fingerprint fp2) |
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
|
java.lang.String |
toString() |
getMatcherName, getMinimumScore, getScore, getScore, getScoreXML, match, 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 java.lang.String toString()
toString
in class java.lang.Object
public FingerprintMatcher getScore(Fingerprint fp1, Fingerprint fp2)
getScore
in class FingerprintMatcher