- Gaussian function
In
mathematics , a Gaussian function (named afterCarl Friedrich Gauss ) is a function of the form::
for some real constants "a" > 0, "b", "c" > 0, and "e" ≈ 2.718281828 (Euler's number).
The graph of a Gaussian is a characteristic symmetric "bell shape curve" that quickly falls off towards plus/minus infinity. The parameter "a" is the height of the curve's peak, "b" is the position of the center of the peak, and "c" controls the width of the "bell".
Gaussian functions are widely used in
statistics where they describe thenormal distribution s, insignal processing where they serve to defineGaussian filter s, inimage processing where two-dimensional Gaussians are used forGaussian blur s, and inmathematics where they are used to solveheat equation s anddiffusion equation s and to define theWeierstrass transform .Properties
Gaussian functions arise by applying the
exponential function to a generalquadratic function . The Gaussian functions are thus those functions whoselogarithm is a quadratic function.The parameter "c" is related to the full width at half maximum (FWHM) of the peak according to
:
Alternatively, the parameter "c" can be interpreted by saying that the two
inflection point s of the function occur at "x"="b"−"c" and "x"="b"+"c".Gaussian functions are analytic, and their limit for "x"→±∞ is 0. Gaussian functions are among those functions that are elementary but lack elementary
antiderivative s; theintegral of the Gaussian function is theerror function . Nonetheless their improper integrals over the whole real line can be evaluated exactly, using theGaussian integral :
and one obtains
:
This integral is 1 if and only if "a" = 1/("c"√(2π)), and in this case the Gaussian is the
probability density function of a normally distributedrandom variable withexpected value μ="b" andvariance σ2="c"2. These Gaussians are graphed in the accompanying figure.Taking the
Fourier transform of a Gaussian function with parameters "a", "b"=0 and "c" yields another Gaussian function, with parameters "ac", "b"=0 and 1/"c". So in particular the Gaussian functions with "b"=0 and "c"=1 are kept fixed by the Fourier transform (they areeigenfunction s of the Fourier transform with eigenvalue 1).The product of two Gaussian functions is again a Gaussian, and the
convolution of two Gaussian functions is again a Gaussian.Two-dimensional Gaussian function
A particular example of a two-dimensional Gaussian function is :
Here the coefficient "A" is the amplitude, "x"o,yo is the center and σ"x", σ"y" are the "x" and "y" spreads of the blob. The figure on the left was created using "A" = 1, "x"o = 0, "y"o = 0, σ"x" = σ"y" = 1.
In general, a two-dimensional Gaussian function is expressed as
:
where the matrix
:
Using this formulation, the figure on the left can be created using "A" = 1, ("x"o, "y"o) = (0, 0), "a" = "c" = 1, "b" = 0.
Meaning of parameters for the general equation
For the general form of the equation the coefficient "A" is the height of the peak and ("x"o, "y"o) is the center of the blob.
If we set
:
:
:
then we rotate the blob by an angle . This can be seen in the following examples:
Using the following
MATLAB code one can see the effect of changing the parameters easilySuch functions are often used in
image processing and in computational models ofvisual system function -- see the articles onscale space andaffine shape adaptation .Also see
multivariate normal distribution .Applications
Gaussian functions appear in many contexts in the
natural sciences , thesocial sciences ,mathematics , andengineering . Some examples include:
* Instatistics andprobability theory , Gaussian functions appear as the density function of thenormal distribution , which is a limitingprobability distribution of complicated sums, according to thecentral limit theorem .
* Gaussian functions are closely related to the (homogeneous and isotropic)diffusion equation (and, which is the same thing, to theheat equation ), apartial differential equation that describes the time evolution of a mass-density underdiffusion . Specifically, if the mass-density at time "t"=0 is given by aDirac delta , which essentially means that the mass is initially concentrated in a single point, then the mass-distribution at time "t" will be given by a Gaussian function, with the parameter "a" being linearly related to 1/√"t" and "c" being linearly related to √"t". More generally, if the initial mass-density is φ("x"), then the mass-density at later times is obtained by taking theconvolution of φ with a Gaussian function. The convolution of a function with a Gaussian is also known as aWeierstrass transform .
* A Gaussian function is thewave function of theground state of thequantum harmonic oscillator .
* Themolecular orbital s used incomputational chemistry can belinear combination s of Gaussian functions calledGaussian orbital s (see alsobasis set (chemistry) ).
* Mathematically, thederivative s of the Gaussian function are used to defineHermite polynomial s.
* Consequently, Gaussian functions are also associated with thevacuum state inquantum field theory .
*Gaussian beam s are used in optical and microwave systems,
* Gaussian functions are used as smoothing kernels for generating multi-scale representations incomputer vision andimage processing -- see the article onscale space representation. Specifically, derivatives of Gaussians are used as a basis for defining a large number of types of visual operations.
* Gaussian functions are used to define some types ofartificial neural network s.
* Influorescence microscopy a 2D Gaussian function is used to approximate theAiry disk , describing the intensity distribution produced by apoint source .ee also
*
Lorentzian function
*Multivariate normal distribution External links
* [http://mathworld.wolfram.com/GaussianFunction.html Mathworld, includes a proof for the relations between c and FWHM]
Wikimedia Foundation. 2010.