findBursts {soundgen} | R Documentation |
Internal soundgen function.
findBursts(
ampl,
step,
windowLength,
interburst,
burstThres,
peakToTrough,
troughLocation = "either",
scale = c("dB", "linear")[2]
)
ampl |
downsampled amplitude envelope |
step |
time difference between two points in the envelope (ms) |
windowLength |
length of FFT window, ms |
interburst |
minimum time between two consecutive bursts (ms). Defaults
to the average detected |
peakToTrough |
to qualify as a burst, a local maximum has to be at least
|
troughLocation |
should local maxima be compared to the trough on the left and/or right of it? Values: 'left', 'right', 'both', 'either' |
Called by segment
.
Returns a dataframe with timing of bursts