compareWithFingerprint: Compare a test fingerprint with a known fingerprint

Description Usage Arguments Value Examples

View source: R/isSimilar.R

Description

Compare a test fingerprint with a known fingerprint

Usage

1
compareWithFingerprint(test, fingerprint, threshold = 0.001, exact = FALSE)

Arguments

test

fingerprint

fingerprint

fingerprint

threshold

single numeric similarity parameter, for the original algorithm it defaults to 1e-3. For the dct method it is the number bits allowed to be different in the fingerprint (i.e. Hamming distance).

exact

single logical should fingerprints match exactly (default FALSE)

Value

single logical

Examples

1
2
3
4
5
6
7
8
9
compareWithFingerprint(test = 1:3, fingerprint = 1:3)
compareWithFingerprint(test = 1:3, fingerprint = 1:4)
compareWithFingerprint(test = 1:3, fingerprint = 1:3 + 1e-3)
compareWithFingerprint(test = 1:3, fingerprint = c(1, 2, 3.1))
compareWithFingerprint(
  test = 1:3,
  fingerprint = c(1, 2, 3.1),
  exact = TRUE
)

MangoTheCat/visualTest documentation built on May 7, 2019, 2:24 p.m.