Learn R Programming

stats (version 3.5.2)

kernapply: Apply Smoothing Kernel

Description

kernapply computes the convolution between an input sequence and a specific kernel.

Usage

kernapply(x, …)

# S3 method for default kernapply(x, k, circular = FALSE, …) # S3 method for ts kernapply(x, k, circular = FALSE, …) # S3 method for vector kernapply(x, k, circular = FALSE, …)

# S3 method for tskernel kernapply(x, k, …)

Arguments

x

an input vector, matrix, time series or kernel to be smoothed.

k

smoothing "tskernel" object.

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.

Value

A smoothed version of the input sequence.

See Also

kernel, convolve, filter, spectrum

Examples

Run this code
# NOT RUN {
## see 'kernel' for examples
# }

Run the code above in your browser using DataLab