soundgen (version 1.5.0)

findBursts: Find bursts

Description

Internal soundgen function.

Usage

findBursts(envelope, timestep, interburst, burstThres, peakToTrough,
  troughLeft = TRUE, troughRight = FALSE)

Arguments

envelope

downsampled amplitude envelope

timestep

time difference between two points in the envelope (ms)

interburst

minimum time between two consecutive bursts (ms). If specified, it overrides interburstMult

burstThres

to qualify as a burst, a local maximum has to be at least burstThres times the height of the global maximum of amplitude envelope

peakToTrough

to qualify as a burst, a local maximum has to be at least peakToTrough times the local minimum on the LEFT over analysis window (which is controlled by interburst or interburstMult)

troughLeft

should local maxima be compared to the trough on the left and/or right of it? Default to TRUE and FALSE, respectively

troughRight

should local maxima be compared to the trough on the left and/or right of it? Default to TRUE and FALSE, respectively

Value

Returns a dataframe with timing of bursts

Details

Called by segment.