Learn R Programming

sonicscrewdriver (version 0.0.7)

autoBandPass: Automatic Band Pass Filter

Description

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.

Usage

autoBandPass(wave, bw = "-3dB", n.bw = 1, lowcut = 1000)

Value

A band-pass filtered Wave object

Arguments

wave

A Wave object

bw

Either -3dB or -10dB. This is calculated by frequencyStats

n.bw

The number of bandwidths either side of the centre of the centre to keep

lowcut

High-pass filtering is applied at this frequency before calculating the centre frequency and bandwidth

Examples

Run this code
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