dv: Ratio of amplitudes of pulses and interpulse intervals

Description Usage Arguments Details Value

View source: R/dv.R

Description

Ratio of amplitudes of pulses and interpulse intervals

Usage

1
dv(sound, labels = NULL, ...)

Arguments

sound

Wave object.

labels

File containing the timestamps of the syllables.

...

Further arguments passed to 'seewave::timer()'.

Details

This script calculates the ratio of amplitudes of pulses and interpulse intervals according to Ryan & Sullivan (1989). The root mean squares for each pulse and interpulse interval are calculated. Then the rms of each interpulse interval is divided by the rms of the preceding pulse, and the result is substracted from 1. The last pulse is not considered in the calculation because by definition it does not precede any other interpulse interval.

Value

A vector with the ratio of amplitude of each interpulse interval and its preceding pulse.


crodriguez-saltos/hummingbrain documentation built on Feb. 1, 2020, 3:07 a.m.