gaussian, a MATLAB code which evaluates the Gaussian function and its derivatives.

A formula for the Gaussian function at the point x is:

      g(x,mu,sigma) = 1/sigma/sqrt(2*pi) * exp ( -(x-mu)^2/2/sigma^2)
where mu the mean value, and sigma is the standard deviation.


The computer code and data files made available on this web page are distributed under the GNU LGPL license.


gaussian is available in a MATLAB version.

Related Data and Programs:


gaussian_2d, a MATLAB code which evaluates a general Gaussian function of a 2D argument.

hermite_polynomial, a MATLAB code which evaluates the physicist's Hermite polynomial, the probabilist's Hermite polynomial, the Hermite function, and related functions.

Source Code:

Last modified on 10 May 2020.