kernapply {stats} | R Documentation |
kernapply
computes the convolution between an input sequence
and a specific kernel.
kernapply(x, ...) ## Default S3 method: kernapply(x, k, circular = FALSE, ...) ## S3 method for class 'ts' kernapply(x, k, circular = FALSE, ...) ## S3 method for class 'vector' kernapply(x, k, circular = FALSE, ...) ## S3 method for class 'tskernel' kernapply(x, k, ...)
x |
an input vector, matrix, time series or kernel to be smoothed. |
k |
smoothing |
circular |
a logical indicating whether the input sequence to be smoothed is treated as circular, i.e., periodic. |
... |
arguments passed to or from other methods. |
A smoothed version of the input sequence.
This uses fft
to perform the convolution, so is fastest
when NROW(x)
is a power of 2 or some other highly composite
integer.
A. Trapletti
kernel
, convolve
, filter
,
spectrum
## see 'kernel' for examples