check_overlap: check_overlap function

View source: R/check_overlap.R

check_overlapR Documentation

check_overlap function

Description

Takes 2 intervals and computes how much they overlap.

Usage

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

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

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