gausssmooth: Gaussian kernel smoother

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/gausssmooth.R

Description

Smoothing and detrending of arbitrarily sampled time series with a Gaussian smoother.

Usage

1
gausssmooth(tx = 1:length(x), x, h = 0.5)

Arguments

tx

Observation time vector

x

Observations

h

Kernel width in time units.

Value

A list with

Xsmooth

Smoothed time series

detr

Detrended time series

Note

Legacy. Use gaussdetr or gaussbandpass now. Endpoints are currently not treated.

Author(s)

Kira Rehfeld

References

Rehfeld, K., Marwan, N., Heitzig, J., and Kurths, J.: Comparison of correlation analysis techniques for irregularly sampled time series, Nonlin. Processes Geophys., 18, 389-404, doi:10.5194/npg-18-389-2011, 2011.

See Also

gaussdetr,gaussbandpass

Examples

1
2
3
4
5
6
tx<-generate_t()
x<-sin(2*pi*tx/100)+sin(2*pi*tx/10)+rnorm(length(tx))
plot(tx,x)
lines(tx,gausssmooth(tx=tx,x=x,h=100/6)$Xsmooth,col="red")
lines(tx,gausssmooth(tx=tx,x=x,h=100/6)$detr,col="blue")
legend("topright",legend=c("original data","trend","residual"),col=c("black","red","blue"),lty=1)

krehfeld/nest documentation built on May 28, 2019, 12:33 a.m.