View source: R/findEchoTimes.R
findEchoTimes | R Documentation |
Finds the estimated times of echoes in a waveform clip. This function was developed to estimate the time of a surface reflected echo of echolocation clicks of deep diving marine mammals. The times of echoes are estimated by finding peaks in the autocorrelation of a signal.
findEchoTimes(
wav,
sr = NULL,
filter = NULL,
clipLen = 0.03,
peakMin = 0.01,
minTime = 0.001,
maxTime = NULL,
channel = NULL,
n = 3,
plot = TRUE,
plotText = NULL
)
wav |
waveform to find echoes in. Can be a numeric vector, Wave, or WaveMC class object |
sr |
sample rate of the waveform, if |
filter |
filter to apply to |
clipLen |
length of clip (seconds) to analyse for echoes,
measured from start of |
peakMin |
minimum magnitude of autocorrelation value to be considered a possible peak |
minTime |
minimum allowed echo time (seconds), this should be large enough to avoid correlating the original pulse with itself |
maxTime |
maximum allowed echo time (seconds) |
channel |
if |
n |
the number of potential echoes to return, times with the
|
plot |
logical flag to create plot, will create a two-panel plot of the waveform (top) and the autocorrelation (bottom). Points of the selected candidate echo times are also drawn |
plotText |
optional text to plot on the upper waveform plot |
a list with elements mag
, time
and wav
Taiki Sakai taiki.sakai@noaa.gov
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.