gaussianSmooth: Smooth a numeric array with a Gaussian kernel

Description Usage Arguments Details Value Author(s) See Also


This function smoothes an array using a Gaussian kernel with a specified standard deviation.





An object that can be coerced to an array, or for which a morph method exists.


A numeric vector giving the standard deviation of the kernel in each dimension. Can have lower dimensionality than the target array.


This implementation takes advantage of the separability of the Gaussian kernel for speed when working in multiple dimensions. It is therefore equivalent to, but much faster than, directly applying a multidimensional kernel.


A morphed array with the same dimensions as the original array.


Jon Clayden <>

See Also

morph for the function underlying this operation, gaussianKernel for generating Gaussian kernels (which is also used by this function), and erode for mathematical morphology functions.

Search within the mmand package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.