hampel: Hampel Filter

Description Usage Arguments Value Examples

Description

This function Hampel Filters each column of a matrix.

Usage

1
hampel(x,k=3,t0=3)

Arguments

x

Numeric Matrix where the columns are to be filtered.

k

Window width. Note that the window is symmetric around the i^th element with a total of 2*k+1 elements.

t0

Threshold, expressed in Median Absolute Deviations. Note that setting the threshold to 0 creates a Median filter.

Value

Returns a matrix containing the filtered data

Examples

1
2
mat<-matrix(rnorm(100*100),ncol=100)
a<-hampel(mat)

FIACH documentation built on May 1, 2019, 8:02 p.m.

Related to hampel in FIACH...