- X
object of class 'selection_table', 'extended_selection_table' or any data frame with columns
for sound file name (sound.files), selection number (selec), and start and end time of signal
(start and end).
- mar
numeric vector of length 1. Specifies the margins adjacent to
the start and end points of selection over which to measure noise.
- parallel
Numeric. Controls whether parallel computing is applied.
It specifies the number of cores to be used. Default is 1 (i.e. no parallel computing). It can also be
set globally using the 'parallel' option (see warbleR_options
).
- path
Character string containing the directory path where the sound files are located.
If NULL
(default) then the current working directory is used. It can also be
set globally using the 'wav.path' option (see warbleR_options
).
- pb
Logical argument to control if progress bar is shown. Default is TRUE
. It can also be
set globally using the 'pb' option (see warbleR_options
).
- type
Numeric. Determine the formula to be used to calculate the signal-to-noise ratio (S = signal
, N = background noise):
1
: ratio of S mean amplitude envelope to
N mean amplitude envelope (mean(env(S))/mean(env(N))
)
2
: ratio of S amplitude envelope RMS (root mean square) to N amplitude envelope RMS
(rms(env(S))/rms(env(N))
)
3
: ratio of the difference between S amplitude envelope RMS and N amplitude envelope RMS to N amplitude envelope RMS ((rms(env(S)) - rms(env(N)))/rms(env(N))
)
- eq.dur
Logical. Controls whether the noise segment that is measured has the same duration
than the signal (if TRUE
, default FALSE
). If TRUE
then 'mar' argument is ignored.
- in.dB
Logical. Controls whether the signal-to-noise ratio is returned in decibels (20*log10(SNR)).
Default is TRUE
.
- before
Logical. If TRUE
noise is only measured right before the signal (instead of before and after). Default is FALSE
.
- lim.dB
Logical. If TRUE
the lowest signal-to-noise would be limited to -40 dB (if in.dB = TRUE
). This would remove NA's that can be produced when noise segments have a higher amplitude than the signal
itself. Default is TRUE
.
- bp
Numeric vector of length 2 giving the lower and upper limits of a frequency bandpass filter (in kHz). Default is NULL
.
- wl
A numeric vector of length 1 specifying the window length of the spectrogram for applying bandpass. Default
is 10. Ignored if bp = NULL
. It can also be
set globally using the 'wl' option (see warbleR_options
).
Note that lower values will increase time resolution, which is more important for signal-to-noise ratio calculations.