kernSmooth1: (Usually Gaussian) smoothing an array along the first...

View source: R/kernSmooth1.R

kernSmooth1R Documentation

(Usually Gaussian) smoothing an array along the first dimension. Note: Due to high variability in the speed of the fft() used in convolve() in this function, the performance times vary greatly for different lengths of the input data. NAs are removed in the actual convolution, so a large number of NAs should not slow down the function.

Description

(Usually Gaussian) smoothing an array along the first dimension. Note: Due to high variability in the speed of the fft() used in convolve() in this function, the performance times vary greatly for different lengths of the input data. NAs are removed in the actual convolution, so a large number of NAs should not slow down the function.

Usage

kernSmooth1(x, kern = 3, nsd = 3)

Arguments

x

is an array to be smoothed along the first dimension.

kern

is the kernel of the smoothing filter, defaulted to a Gaussian kernel.

nsd

is the number of standard deviations on either side of the mean of the Gaussian kernel, outside which the kernel is zero.


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.