MatchSigsAndRelabel: An asymmetrical analysis of a set of "ground truth" and...

Description Usage Arguments Value Examples

View source: R/match.sigs.R

Description

This function is deprecated. You probably want to use TP_FP_FN_avg_sim, sig_dist_matrix, or match_two_sig_sets.

Usage

1
MatchSigsAndRelabel(ex.sigs, gt.sigs, exposure = NULL, similarity.cutoff = 0.9)

Arguments

ex.sigs

Newly extracted signatures to be compared to gt.sigs.

gt.sigs

"Ground truth" signatures.

exposure

If NULL, then match ex.sigs against all signatures in gt.sigs. Otherwise this should be ground-truth exposures used generate the synthetic spectra from which ex.sigs were extracted. In this case we do not match to ground-truth signatures that were not in the ground truth exposure.

similarity.cutoff

A ground-truth signature must have been the best match of an extracted signature with a cosine similarity $ge$ this value to be considered a true positive. Otherwise we consider the ground-truth signature to be a false negative.

Value

A list with the elements

Examples

1
2
3
4
5
6
gt.sigs <- matrix(c(1, 3,   4, 1, 2, 4), ncol = 2)
ex.sigs <- matrix(c(1, 3.1, 4, 5, 1, 1, 1, 2.8, 4), ncol = 3)
colnames(gt.sigs) <- c("gt.1", "gt.2")
colnames(ex.sigs) <- c("ex.1", "ex.2", "ex.3")
tout <- MatchSigsAndRelabel(gt.sigs = gt.sigs, ex.sigs = ex.sigs)
tout

steverozen/ICAMSxtra documentation built on Feb. 9, 2022, 7:01 a.m.