compute_oscores_dep: compute_oscores_dep

View source: R/compute_oscores_dep.R

compute_oscores_depR Documentation

compute_oscores_dep

Description

Dependency function for compute_oscores. Takes a note and matches it with a note in a table with the most overlap. Computes the overlap scores between the two notes.

Usage

compute_oscores_dep(note, table)

Arguments

note

: 2-dimensional numeric vector.

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 3 overlap scores.

Examples

table1 = tibble::tibble(start = c(0.30, 0.55, 1.5, 2.5), end = c(0.51, 0.7, 2.2, 3), 
sound.files = "JS001.wav", pos =c(1,2,3,4), note_label = "Curve")
note = c(0.4,0.54)

Anthony-Kwong/birdsong.tools documentation built on April 14, 2023, 9:50 a.m.