powered by
Creates an automatic bandpass filter based on the strongest frequency. The allowed bandwidth can be an integer multiple of the bandwidth at either -3dB or -10dB.
autoBandPass(wave, bw = "-3dB", n.bw = 1, lowcut = 1000)
A band-pass filtered Wave object
A Wave object
Either -3dB or -10dB. This is calculated by frequencyStats
frequencyStats
The number of bandwidths either side of the centre of the centre to keep
High-pass filtering is applied at this frequency before calculating the centre frequency and bandwidth
if (FALSE) { autoBandPass(sheep) autoBandPass(sheep, bw="-3dB", n.bw=1, lowcut=1000) autoBandPass(sheep, bw="-10dB", n.bw=2, lowcut=0) }
Run the code above in your browser using DataLab