DirectFiltering: DirectFiltering

Description Usage Arguments Value Examples

View source: R/DirectFiltering.R

Description

direct filtering with application of the time domain filter to irregular time series at regular filter positions

Usage

1
2
DirectFiltering(X, fc, tn, appliedFilter = c("gauss", "runmean", "lowpass"),
  k = 5)

Arguments

X

time series (zoo-object)

fc

cut-off frequency

tn

output vector (time) of the filtered data

appliedFilter

time domain filter (gauss, runmean, lowpass)

k

scaling factor to define the sharpness of the lowpass

Value

filtered time series (zoo-object)

Examples

1
2
3
4
timser.irreg <- zoo(rnorm(100), order.by=sort(runif(100,min=1,max=1000)))
timser.irregSmooth <- DirectFiltering(X=timser.irreg, fc=1/50, tn=seq(from=10,to=1000,by=10), appliedFilter="lowpass", k=5)
plot(timser.irreg,type="l",col="black")
lines(timser.irregSmooth,col="limegreen",lwd=3)

EarthSystemDiagnostics/corit documentation built on May 29, 2019, 1:39 p.m.