Description Usage Arguments Details Value Note
View source: R/preprocessing.R
This function assumes that the wave is a recording containing principally a single source and amplitude modulated song. It tries to find and apply automatic bandpass filter in order to reduce noise.
1 2 | autoBandPassFilter(wave, bps = 2, min_freq = 1000, max_freq = NULL,
wl = 2^10, plot=FALSE)
|
wave |
an R object or path to a wave file |
bps |
the bandpass size relative to sigma |
min_freq |
the lowest expected frequency, in Hz |
max_freq |
the highest expected frequency, in Hz. If NULL the Nyquist frequency of the file will be used. |
wl |
the window length for spectrogram generation |
plot |
Is set to TRUE the function will plot the output. |
The bps
arguments refers to the selectivity of the filter.
It represents the width of the bandpass filter relative to
the standard deviation of the PDF, in frequency range.
In the original publication bps
= 2 (i.e.
2 sigmas
, see eq. 3). The present implementation allow to alter this parameter. Higher values will result in broader (i.e. less selective) filter.
a bandpass filter wave of the same type as wave
todo ref (Dietrich et al., 2004)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.