View source: R/overlap_score.R
overlap_score | R Documentation |
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|
overlap_score(note1, note2)
note1 |
: A 2-dim numeric vector. Designated as y. |
note2 |
: A 2-dim numeric vector. Designated as z. |
A numeric vector for scores1,2,3.
note1 = c(1,5), note2 = c(3,4)
overlap_score(note1,note2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.