gauss_kernel: Create a Gaussian kernel

View source: R/pictplot.R

gauss_kernelR Documentation

Create a Gaussian kernel

Description

Create a Gaussian kernel

Usage

gauss_kernel(sd, radius = round(2.5 * sd))

Arguments

sd

sd of the normal distribution

radius

kernel radius. kernel diameter is 2 * radius + 1.

Value

an image

Examples

plot(gauss_kernel(10), rescale = TRUE)
plot(gauss_kernel(sd = 10, radius = 20), rescale = TRUE)

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.