compare_results: Compare two result files to find similar signatures

Description Usage Arguments Value Examples

View source: R/compare_results.R

Description

Compare two result files to find similar signatures

Usage

1
2
3
4
5
6
7
8
compare_results(
  result,
  other_result,
  threshold = 0.9,
  metric = "cosine",
  result_name = deparse(substitute(result)),
  other_result_name = deparse(substitute(other_result))
)

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

Value

Returns the comparisons

Examples

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

musicatk documentation built on Nov. 8, 2020, 5:16 p.m.