compute_oscores: compute_oscores function

Description Usage Arguments Value Examples

View source: R/compute_oscores.R

Description

Compares a computational unit table against a manual unit table using the overlap scores defined in overlap_score. Function attempts to match each computational note to a note in the manual table with the most overlap.

Usage

1
compute_oscores(manual_table, comp_table)

Arguments

manual_table:

A unit table tibble containing the original sound file, start/end times of the note,the note position and note_label.

comp_table:

A unit table tibble containing the original sound file, start/end times of the note,the note position and note_label.

Value

A numeric vector containing the totals of the 3 overlaps scores.

Examples

1
2
3
4
5
table1 = tibble::tibble(start = c(0.30, 0.55, 1.5, 2.5), end = c(0.51, 0.7, 2.2, 3), 
sound.files = c(rep("JS001.wav",2),rep("JS002.wav",2)) , pos =c(1,2,3,4), note_label = "Curve")
table2 = tibble::tibble(start = c(0.25, 0.65, 1.6, 2.4), end = c(0.45, 0.75, 2.1, 2.9), 
sound.files = c(rep("JS001.wav",2),rep("JS002.wav",2)), pos =c(1,2,3,4), note_label = "Unclassifed")
compute_oscores(table1,table2)

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