gaussianMatrix

Create a 1D matrix of a discrete gaussian distribution with a given standard deviation and the number of standard deviations to stop generating at. The result is mirrored with guaranteed odd length.

The result can be used to convolve a image.

real[]
gaussianMatrix
(
real stDev = 1
,
real maxDev = 3
)

Meta