# kernapply

##### Apply Smoothing Kernel

`kernapply`

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

- Keywords
- ts

##### 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.

##### Note

This uses `fft`

to perform the convolution, so is fastest
when `NROW(x)`

is a power of 2 or some other highly composite
integer.

##### See Also

##### Examples

`library(stats)`

```
# NOT RUN {
## see 'kernel' for examples
# }
```

*Documentation reproduced from package stats, version 3.6.0, License: Part of R 3.6.0*

### Community examples

Looks like there are no examples yet.