overlap_score: overlap_score function

Description Usage Arguments Value Examples

View source: R/overlap_score.R

Description

Computes the overlap scores between 2 notes. The scores are defined as follows. score1 = (y \cap z) / y, score2 = (y \cap z) / (y \cup z), score3 = |(y \cap z)|^2 / |y| \times |z|

Usage

1
overlap_score(note1, note2)

Arguments

note1

: A 2-dim numeric vector. Designated as y.

note2

: A 2-dim numeric vector. Designated as z.

Value

A numeric vector for scores1,2,3.

Examples

1
2
note1 = c(1,5), note2 = c(3,4)
overlap_score(note1,note2)

deponent-verb/birdsong.tools documentation built on Dec. 19, 2021, 10:12 p.m.