lpfilter: Causal lowpass filtering with decimation

View source: R/filtering.R

lpfilterR Documentation

Causal lowpass filtering with decimation

Description

Causal lowpass filtering with decimation

Usage

lpfilter(y, wgts, ndec = 1)

lpfilter.dec(y, frq = 1, ndecs = c(2, 5), plt = FALSE, ...)

Arguments

y

numeric

wgts

numeric; convolution filter weights

ndec

integer; the decimation factors to use

frq

integer; the sampling frequency of y

plt

logical; should the decimation stages be plotted?

...

additional parameters to ts in the case y does not have class 'ts'.

Details

Applies a single-sided convolution filter with the filter weights (wgts) to the data (y). The decimation factor is set with ndec but is only applied when ndec>1.

See Also

straight_decimate, filter, strain-filtering


abarbour/strain documentation built on Oct. 13, 2023, 11:44 p.m.