gaussian_2d


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

A formula for the Gaussian function at the point (x,y) is:

      g(c,x,y,xmu,ymu,xsigma,ysigma,A) = c * exp ( 1/2 xy' * A * xy )
      
where xy is the vector
      [ ( x - xmu ) / sigma,
        ( y - ymu ) / sigma ]
      
and A is a symmetric positive definite (SPD) matrix.

Licensing:

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

Languages:

gaussian_2d is available in a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

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

Source Code:


Last modified on 22 August 2023.