computeProb: Compute the probability of obtaining a higher correlation by...

Description Usage Arguments Value Examples

Description

Given a reference distribution of correlation values of non-matches, compute the probability of obtaining a higher correlation, under the assumption that the two images are not a match, i.e. not from the same gun.

Usage

1
computeProb(corr, empiricalNull)

Arguments

corr

maximum correlation between two images, taking into account all translations and many rotation angles, e.g. the output of calculateCCFmax().

empiricalNull

the non-match distribution to compare the value of corr against. We suggest using the empirical null distribution based on all pairwise comparisons of non-matches in a known database.

Value

the probability of obtaining a higher similarity score by chance.

Examples

1
2
3
4
## Not run: 
computeProb(.1, rnorm(50, .07, 1))

## End(Not run)

xhtai/cartridges documentation built on June 1, 2019, 2:58 p.m.