fpNOr, fpNAnd, fpNOff {fingerprint} | R Documentation |
These functions evaluate the number of bits common (i.e., set or unset) between two fingerprints. These are mainly used to evaluate the various distance metrics. So for two fingerprints A and B we have
fpNOr(fp1, fp2, size=1024) fpNAnd(fp1, fp2, size=1024) fpNOff(fp1, fp2, size=1024)
fp1 |
A fingerprint vector |
fp2 |
A fingerprint vector |
size |
The length of the fingerprints represented by the fingerprint vectors |
An integer indicating the number of bits for the specific condition
Rajarshi Guha rguha@indiana.edu
# make 2 fingerprints fp1 <- fp.from.bstring("11001011") fp2 <- fp.from.bstring("11010100") fpNOr(fp1,fp2,8) fpNAnd(fp1,fp2,8) fpNOff(fp1,fp2,8)