compare_results: Compare two result files to find similar signatures

View source: R/compare_results.R

compare_resultsR Documentation

Compare two result files to find similar signatures

Description

Compare two result files to find similar signatures

Usage

compare_results(
  result,
  other_result,
  threshold = 0.9,
  metric = "cosine",
  result_name = deparse(substitute(result)),
  other_result_name = deparse(substitute(other_result)),
  decimals = 2,
  same_scale = FALSE
)

Arguments

result

A musica_result object.

other_result

A second musica_result object.

threshold

threshold for similarity

metric

One of "cosine" for cosine similarity or "jsd" for 1 minus the Jensen-Shannon Divergence. Default "cosine".

result_name

title for plot of first result signatures

other_result_name

title for plot of second result signatures

decimals

Specifies rounding for similarity metric displayed. Default 2.

same_scale

If TRUE, the scale of the probability for each signature will be the same. If FALSE, then the scale of the y-axis will be adjusted for each signature. Default FALSE.

Value

Returns the comparisons

Examples

data(res)
compare_results(res, res, threshold = 0.8)

campbio/musicatk documentation built on July 14, 2024, 8:28 a.m.