autoBandPass: Automatic Band Pass Filter

View source: R/autoBandPass.R

autoBandPassR Documentation

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)

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

Value

A band-pass filtered Wave object

Examples

## Not run: 
autoBandPass(sheep)
autoBandPass(sheep, bw="-3dB", n.bw=1, lowcut=1000)
autoBandPass(sheep, bw="-10dB", n.bw=2, lowcut=0)

## End(Not run)

sonicscrewdriver documentation built on May 29, 2024, 3:39 a.m.