check_overlap: check_overlap function

Description Usage Arguments Value Examples

View source: R/check_overlap.R

Description

Takes 2 intervals and computes how much they overlap.

Usage

1
check_overlap(note1, note2)

Arguments

note1

: A 2-dim numeric vector.

note2

: A 2-dim numeric vector.

Value

A numeric scalar value indicating the amount of overlap. If the intervals do not overlap, the value is 0.

Examples

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

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