fbpx
Wikipedia

Gaussian function

In mathematics, a Gaussian function, often simply referred to as a Gaussian, is a function of the base form

and with parametric extension
for arbitrary real constants a, b and non-zero c. It is named after the mathematician Carl Friedrich Gauss. The graph of a Gaussian is a characteristic symmetric "bell curve" shape. The parameter a is the height of the curve's peak, b is the position of the center of the peak, and c (the standard deviation, sometimes called the Gaussian RMS width) controls the width of the "bell".

Gaussian functions are often used to represent the probability density function of a normally distributed random variable with expected value μ = b and variance σ2 = c2. In this case, the Gaussian is of the form[1]

Gaussian functions are widely used in statistics to describe the normal distributions, in signal processing to define Gaussian filters, in image processing where two-dimensional Gaussians are used for Gaussian blurs, and in mathematics to solve heat equations and diffusion equations and to define the Weierstrass transform.

Properties edit

Gaussian functions arise by composing the exponential function with a concave quadratic function:

 
where
  •  
  •  
  •  

(Note: in  , not to be confused with  )

The Gaussian functions are thus those functions whose logarithm is a concave quadratic function.

The parameter c is related to the full width at half maximum (FWHM) of the peak according to

 

The function may then be expressed in terms of the FWHM, represented by w:

 

Alternatively, the parameter c can be interpreted by saying that the two inflection points of the function occur at x = b ± c.

The full width at tenth of maximum (FWTM) for a Gaussian could be of interest and is

 

Gaussian functions are analytic, and their limit as x → ∞ is 0 (for the above case of b = 0).

Gaussian functions are among those functions that are elementary but lack elementary antiderivatives; the integral of the Gaussian function is the error function:

 

Nonetheless, their improper integrals over the whole real line can be evaluated exactly, using the Gaussian integral

 
and one obtains
 
 
Normalized Gaussian curves with expected value μ and variance σ2. The corresponding parameters are  , b = μ and c = σ.

This integral is 1 if and only if   (the normalizing constant), and in this case the Gaussian is the probability density function of a normally distributed random variable with expected value μ = b and variance σ2 = c2:

 

These Gaussians are plotted in the accompanying figure.

Gaussian functions centered at zero minimize the Fourier uncertainty principle[clarification needed].

The product of two Gaussian functions is a Gaussian, and the convolution of two Gaussian functions is also a Gaussian, with variance being the sum of the original variances:  . The product of two Gaussian probability density functions (PDFs), though, is not in general a Gaussian PDF.

Taking the Fourier transform (unitary, angular-frequency convention) of a Gaussian function with parameters a = 1, b = 0 and c yields another Gaussian function, with parameters  , b = 0 and  .[2] So in particular the Gaussian functions with b = 0 and   are kept fixed by the Fourier transform (they are eigenfunctions of the Fourier transform with eigenvalue 1). A physical realization is that of the diffraction pattern: for example, a photographic slide whose transmittance has a Gaussian variation is also a Gaussian function.

The fact that the Gaussian function is an eigenfunction of the continuous Fourier transform allows us to derive the following interesting[clarification needed] identity from the Poisson summation formula:

 

Integral of a Gaussian function edit

The integral of an arbitrary Gaussian function is

 

An alternative form is

 
where f must be strictly positive for the integral to converge.

Relation to standard Gaussian integral edit

The integral

 
for some real constants a, b, c > 0 can be calculated by putting it into the form of a Gaussian integral. First, the constant a can simply be factored out of the integral. Next, the variable of integration is changed from x to y = xb:
 
and then to  :
 

Then, using the Gaussian integral identity

 

we have

 

Two-dimensional Gaussian function edit

 
3d plot of a Gaussian function with a two-dimensional domain

Base form:

 

In two dimensions, the power to which e is raised in the Gaussian function is any negative-definite quadratic form. Consequently, the level sets of the Gaussian will always be ellipses.

A particular example of a two-dimensional Gaussian function is

 

Here the coefficient A is the amplitude, x0y0 is the center, and σxσy are the x and y spreads of the blob. The figure on the right was created using A = 1, x0 = 0, y0 = 0, σx = σy = 1.

The volume under the Gaussian function is given by

 

In general, a two-dimensional elliptical Gaussian function is expressed as

 
where the matrix
 
is positive-definite.

Using this formulation, the figure on the right can be created using A = 1, (x0, y0) = (0, 0), a = c = 1/2, b = 0.

Meaning of parameters for the general equation edit

For the general form of the equation the coefficient A is the height of the peak and (x0, y0) is the center of the blob.

If we set

 
then we rotate the blob by a positive, counter-clockwise angle   (for negative, clockwise rotation, invert the signs in the b coefficient).[3]


To get back the coefficients  ,   and   from  ,   and   use

 


Example rotations of Gaussian blobs can be seen in the following examples:

 
 
 
 
 
 

Using the following Octave code, one can easily see the effect of changing the parameters:

A = 1; x0 = 0; y0 = 0; sigma_X = 1; sigma_Y = 2; [X, Y] = meshgrid(-5:.1:5, -5:.1:5); for theta = 0:pi/100:pi a = cos(theta)^2 / (2 * sigma_X^2) + sin(theta)^2 / (2 * sigma_Y^2); b = sin(2 * theta) / (4 * sigma_X^2) - sin(2 * theta) / (4 * sigma_Y^2); c = sin(theta)^2 / (2 * sigma_X^2) + cos(theta)^2 / (2 * sigma_Y^2); Z = A * exp(-(a * (X - x0).^2 + 2 * b * (X - x0) .* (Y - y0) + c * (Y - y0).^2)); surf(X, Y, Z); shading interp; view(-36, 36) waitforbuttonpress end 

Such functions are often used in image processing and in computational models of visual system function—see the articles on scale space and affine shape adaptation.

Also see multivariate normal distribution.

Higher-order Gaussian or super-Gaussian function edit

A more general formulation of a Gaussian function with a flat-top and Gaussian fall-off can be taken by raising the content of the exponent to a power  :

 

This function is known as a super-Gaussian function and is often used for Gaussian beam formulation.[4] This function may also be expressed in terms of the full width at half maximum (FWHM), represented by w:

 

In a two-dimensional formulation, a Gaussian function along   and   can be combined[5] with potentially different   and   to form a rectangular Gaussian distribution:

 
or an elliptical Gaussian distribution:
 

Multi-dimensional Gaussian function edit

In an  -dimensional space a Gaussian function can be defined as

 
where   is a column of   coordinates,   is a positive-definite   matrix, and   denotes matrix transposition.

The integral of this Gaussian function over the whole  -dimensional space is given as

 

It can be easily calculated by diagonalizing the matrix   and changing the integration variables to the eigenvectors of  .

More generally a shifted Gaussian function is defined as

 
where   is the shift vector and the matrix   can be assumed to be symmetric,  , and positive-definite. The following integrals with this function can be calculated with the same technique:
 
 
 
 
where  

Estimation of parameters edit

A number of fields such as stellar photometry, Gaussian beam characterization, and emission/absorption line spectroscopy work with sampled Gaussian functions and need to accurately estimate the height, position, and width parameters of the function. There are three unknown parameters for a 1D Gaussian function (a, b, c) and five for a 2D Gaussian function  .

The most common method for estimating the Gaussian parameters is to take the logarithm of the data and fit a parabola to the resulting data set.[6][7] While this provides a simple curve fitting procedure, the resulting algorithm may be biased by excessively weighting small data values, which can produce large errors in the profile estimate. One can partially compensate for this problem through weighted least squares estimation, reducing the weight of small data values, but this too can be biased by allowing the tail of the Gaussian to dominate the fit. In order to remove the bias, one can instead use an iteratively reweighted least squares procedure, in which the weights are updated at each iteration.[7] It is also possible to perform non-linear regression directly on the data, without involving the logarithmic data transformation; for more options, see probability distribution fitting.

Parameter precision edit

Once one has an algorithm for estimating the Gaussian function parameters, it is also important to know how precise those estimates are. Any least squares estimation algorithm can provide numerical estimates for the variance of each parameter (i.e., the variance of the estimated height, position, and width of the function). One can also use Cramér–Rao bound theory to obtain an analytical expression for the lower bound on the parameter variances, given certain assumptions about the data.[8][9]

  1. The noise in the measured profile is either i.i.d. Gaussian, or the noise is Poisson-distributed.
  2. The spacing between each sampling (i.e. the distance between pixels measuring the data) is uniform.
  3. The peak is "well-sampled", so that less than 10% of the area or volume under the peak (area if a 1D Gaussian, volume if a 2D Gaussian) lies outside the measurement region.
  4. The width of the peak is much larger than the distance between sample locations (i.e. the detector pixels must be at least 5 times smaller than the Gaussian FWHM).

When these assumptions are satisfied, the following covariance matrix K applies for the 1D profile parameters  ,  , and   under i.i.d. Gaussian noise and under Poisson noise:[8]

 
where   is the width of the pixels used to sample the function,   is the quantum efficiency of the detector, and   indicates the standard deviation of the measurement noise. Thus, the individual variances for the parameters are, in the Gaussian noise case,
 

and in the Poisson noise case,

 

For the 2D profile parameters giving the amplitude  , position  , and width   of the profile, the following covariance matrices apply:[9]

 
where the individual parameter variances are given by the diagonal elements of the covariance matrix.

Discrete Gaussian edit

 
The discrete Gaussian kernel (solid), compared with the sampled Gaussian kernel (dashed) for scales  

One may ask for a discrete analog to the Gaussian; this is necessary in discrete applications, particularly digital signal processing. A simple answer is to sample the continuous Gaussian, yielding the sampled Gaussian kernel. However, this discrete function does not have the discrete analogs of the properties of the continuous function, and can lead to undesired effects, as described in the article scale space implementation.

An alternative approach is to use the discrete Gaussian kernel:[10]

 
where   denotes the modified Bessel functions of integer order.

This is the discrete analog of the continuous Gaussian in that it is the solution to the discrete diffusion equation (discrete space, continuous time), just as the continuous Gaussian is the solution to the continuous diffusion equation.[10][11]

Applications edit

Gaussian functions appear in many contexts in the natural sciences, the social sciences, mathematics, and engineering. Some examples include:

See also edit

References edit

  1. ^ Squires, G. L. (2001-08-30). Practical Physics (4 ed.). Cambridge University Press. doi:10.1017/cbo9781139164498. ISBN 978-0-521-77940-1.
  2. ^ Weisstein, Eric W. "Fourier Transform – Gaussian". MathWorld. Retrieved 19 December 2013.
  3. ^ Nawri, Nikolai. (PDF). Archived from the original (PDF) on 2019-08-14. Retrieved 14 August 2019.
  4. ^ Parent, A., M. Morin, and P. Lavigne. "Propagation of super-Gaussian field distributions". Optical and Quantum Electronics 24.9 (1992): S1071–S1079.
  5. ^ "GLAD optical software commands manual, Entry on GAUSSIAN command" (PDF). Applied Optics Research. 2016-12-15.
  6. ^ Caruana, Richard A.; Searle, Roger B.; Heller, Thomas.; Shupack, Saul I. (1986). "Fast algorithm for the resolution of spectra". Analytical Chemistry. American Chemical Society (ACS). 58 (6): 1162–1167. doi:10.1021/ac00297a041. ISSN 0003-2700.
  7. ^ a b Hongwei Guo, "A simple algorithm for fitting a Gaussian function," IEEE Sign. Proc. Mag. 28(9): 134-137 (2011).
  8. ^ a b N. Hagen, M. Kupinski, and E. L. Dereniak, "Gaussian profile estimation in one dimension," Appl. Opt. 46:5374–5383 (2007)
  9. ^ a b N. Hagen and E. L. Dereniak, "Gaussian profile estimation in two dimensions," Appl. Opt. 47:6842–6851 (2008)
  10. ^ a b Lindeberg, T., "Scale-space for discrete signals," PAMI(12), No. 3, March 1990, pp. 234–254.
  11. ^ Campbell, J, 2007, The SMM model as a boundary value problem using the discrete diffusion equation, Theor Popul Biol. 2007 Dec;72(4):539–46.
  12. ^ Honarkhah, M and Caers, J, 2010, Stochastic Simulation of Patterns Using Distance-Based Pattern Modeling, Mathematical Geosciences, 42: 487–517

External links edit

gaussian, function, gaussian, curve, redirects, here, band, gaussian, curve, band, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, . Gaussian curve redirects here For the band see Gaussian Curve band This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Gaussian function news newspapers books scholar JSTOR August 2009 Learn how and when to remove this template message In mathematics a Gaussian function often simply referred to as a Gaussian is a function of the base formf x exp x 2 displaystyle f x exp x 2 and with parametric extension f x a exp x b 2 2 c 2 displaystyle f x a exp left frac x b 2 2c 2 right for arbitrary real constants a b and non zero c It is named after the mathematician Carl Friedrich Gauss The graph of a Gaussian is a characteristic symmetric bell curve shape The parameter a is the height of the curve s peak b is the position of the center of the peak and c the standard deviation sometimes called the Gaussian RMS width controls the width of the bell Gaussian functions are often used to represent the probability density function of a normally distributed random variable with expected value m b and variance s2 c2 In this case the Gaussian is of the form 1 g x 1 s 2 p exp 1 2 x m 2 s 2 displaystyle g x frac 1 sigma sqrt 2 pi exp left frac 1 2 frac x mu 2 sigma 2 right Gaussian functions are widely used in statistics to describe the normal distributions in signal processing to define Gaussian filters in image processing where two dimensional Gaussians are used for Gaussian blurs and in mathematics to solve heat equations and diffusion equations and to define the Weierstrass transform Contents 1 Properties 2 Integral of a Gaussian function 2 1 Relation to standard Gaussian integral 3 Two dimensional Gaussian function 3 1 Meaning of parameters for the general equation 3 2 Higher order Gaussian or super Gaussian function 4 Multi dimensional Gaussian function 5 Estimation of parameters 5 1 Parameter precision 6 Discrete Gaussian 7 Applications 8 See also 9 References 10 External linksProperties editGaussian functions arise by composing the exponential function with a concave quadratic function f x exp a x 2 b x g displaystyle f x exp alpha x 2 beta x gamma nbsp where a 1 2 c 2 displaystyle alpha 1 2c 2 nbsp b b c 2 displaystyle beta b c 2 nbsp g ln a b 2 2 c 2 displaystyle gamma ln a b 2 2c 2 nbsp Note in ln a a 1 s 2 p displaystyle ln a a 1 sigma sqrt 2 pi nbsp not to be confused with a 1 2 c 2 displaystyle alpha 1 2c 2 nbsp The Gaussian functions are thus those functions whose logarithm is a concave quadratic function The parameter c is related to the full width at half maximum FWHM of the peak according toFWHM 2 2 ln 2 c 2 35482 c displaystyle text FWHM 2 sqrt 2 ln 2 c approx 2 35482 c nbsp The function may then be expressed in terms of the FWHM represented by w f x a e 4 ln 2 x b 2 w 2 displaystyle f x ae 4 ln 2 x b 2 w 2 nbsp Alternatively the parameter c can be interpreted by saying that the two inflection points of the function occur at x b c The full width at tenth of maximum FWTM for a Gaussian could be of interest and isFWTM 2 2 ln 10 c 4 29193 c displaystyle text FWTM 2 sqrt 2 ln 10 c approx 4 29193 c nbsp Gaussian functions are analytic and their limit as x is 0 for the above case of b 0 Gaussian functions are among those functions that are elementary but lack elementary antiderivatives the integral of the Gaussian function is the error function e x 2 d x p 2 erf x C displaystyle int e x 2 dx frac sqrt pi 2 operatorname erf x C nbsp Nonetheless their improper integrals over the whole real line can be evaluated exactly using the Gaussian integral e x 2 d x p displaystyle int infty infty e x 2 dx sqrt pi nbsp and one obtains a e x b 2 2 c 2 d x a c 2 p displaystyle int infty infty ae x b 2 2c 2 dx ac cdot sqrt 2 pi nbsp nbsp Normalized Gaussian curves with expected value m and variance s2 The corresponding parameters are a 1 s 2 p textstyle a tfrac 1 sigma sqrt 2 pi nbsp b m and c s This integral is 1 if and only if a 1 c 2 p textstyle a tfrac 1 c sqrt 2 pi nbsp the normalizing constant and in this case the Gaussian is the probability density function of a normally distributed random variable with expected value m b and variance s2 c2 g x 1 s 2 p exp x m 2 2 s 2 displaystyle g x frac 1 sigma sqrt 2 pi exp left frac x mu 2 2 sigma 2 right nbsp These Gaussians are plotted in the accompanying figure Gaussian functions centered at zero minimize the Fourier uncertainty principle clarification needed The product of two Gaussian functions is a Gaussian and the convolution of two Gaussian functions is also a Gaussian with variance being the sum of the original variances c 2 c 1 2 c 2 2 displaystyle c 2 c 1 2 c 2 2 nbsp The product of two Gaussian probability density functions PDFs though is not in general a Gaussian PDF Taking the Fourier transform unitary angular frequency convention of a Gaussian function with parameters a 1 b 0 and c yields another Gaussian function with parameters c displaystyle c nbsp b 0 and 1 c displaystyle 1 c nbsp 2 So in particular the Gaussian functions with b 0 and c 1 displaystyle c 1 nbsp are kept fixed by the Fourier transform they are eigenfunctions of the Fourier transform with eigenvalue 1 A physical realization is that of the diffraction pattern for example a photographic slide whose transmittance has a Gaussian variation is also a Gaussian function The fact that the Gaussian function is an eigenfunction of the continuous Fourier transform allows us to derive the following interesting clarification needed identity from the Poisson summation formula k Z exp p k c 2 c k Z exp p k c 2 displaystyle sum k in mathbb Z exp left pi cdot left frac k c right 2 right c cdot sum k in mathbb Z exp left pi cdot kc 2 right nbsp Integral of a Gaussian function editThe integral of an arbitrary Gaussian function is a e x b 2 2 c 2 d x 2 a c p displaystyle int infty infty a e x b 2 2c 2 dx sqrt 2 a c sqrt pi nbsp An alternative form is k e f x 2 g x h d x k e f x g 2 f 2 g 2 4 f h d x k p f exp g 2 4 f h displaystyle int infty infty k e fx 2 gx h dx int infty infty k e f big x g 2f big 2 g 2 4f h dx k sqrt frac pi f exp left frac g 2 4f h right nbsp where f must be strictly positive for the integral to converge Relation to standard Gaussian integral edit The integral a e x b 2 2 c 2 d x displaystyle int infty infty ae x b 2 2c 2 dx nbsp for some real constants a b c gt 0 can be calculated by putting it into the form of a Gaussian integral First the constant a can simply be factored out of the integral Next the variable of integration is changed from x to y x b a e y 2 2 c 2 d y displaystyle a int infty infty e y 2 2c 2 dy nbsp and then to z y 2 c 2 displaystyle z y sqrt 2c 2 nbsp a 2 c 2 e z 2 d z displaystyle a sqrt 2c 2 int infty infty e z 2 dz nbsp Then using the Gaussian integral identity e z 2 d z p displaystyle int infty infty e z 2 dz sqrt pi nbsp we have a e x b 2 2 c 2 d x a 2 p c 2 displaystyle int infty infty ae x b 2 2c 2 dx a sqrt 2 pi c 2 nbsp Two dimensional Gaussian function edit nbsp 3d plot of a Gaussian function with a two dimensional domainBase form f x y exp x 2 y 2 displaystyle f x y exp x 2 y 2 nbsp In two dimensions the power to which e is raised in the Gaussian function is any negative definite quadratic form Consequently the level sets of the Gaussian will always be ellipses A particular example of a two dimensional Gaussian function isf x y A exp x x 0 2 2 s X 2 y y 0 2 2 s Y 2 displaystyle f x y A exp left left frac x x 0 2 2 sigma X 2 frac y y 0 2 2 sigma Y 2 right right nbsp Here the coefficient A is the amplitude x0 y0 is the center and sx sy are the x and y spreads of the blob The figure on the right was created using A 1 x0 0 y0 0 sx sy 1 The volume under the Gaussian function is given byV f x y d x d y 2 p A s X s Y displaystyle V int infty infty int infty infty f x y dx dy 2 pi A sigma X sigma Y nbsp In general a two dimensional elliptical Gaussian function is expressed asf x y A exp a x x 0 2 2 b x x 0 y y 0 c y y 0 2 displaystyle f x y A exp Big big a x x 0 2 2b x x 0 y y 0 c y y 0 2 big Big nbsp where the matrix a b b c displaystyle begin bmatrix a amp b b amp c end bmatrix nbsp is positive definite Using this formulation the figure on the right can be created using A 1 x0 y0 0 0 a c 1 2 b 0 Meaning of parameters for the general equation edit For the general form of the equation the coefficient A is the height of the peak and x0 y0 is the center of the blob If we seta cos 2 8 2 s X 2 sin 2 8 2 s Y 2 b sin 8 cos 8 2 s X 2 sin 8 cos 8 2 s Y 2 c sin 2 8 2 s X 2 cos 2 8 2 s Y 2 displaystyle begin aligned a amp frac cos 2 theta 2 sigma X 2 frac sin 2 theta 2 sigma Y 2 b amp frac sin theta cos theta 2 sigma X 2 frac sin theta cos theta 2 sigma Y 2 c amp frac sin 2 theta 2 sigma X 2 frac cos 2 theta 2 sigma Y 2 end aligned nbsp then we rotate the blob by a positive counter clockwise angle 8 displaystyle theta nbsp for negative clockwise rotation invert the signs in the b coefficient 3 To get back the coefficients 8 displaystyle theta nbsp s X displaystyle sigma X nbsp and s Y displaystyle sigma Y nbsp from a displaystyle a nbsp b displaystyle b nbsp and c displaystyle c nbsp use8 1 2 arctan 2 b a c 8 45 45 s X 2 1 2 a cos 2 8 2 b cos 8 sin 8 c sin 2 8 s Y 2 1 2 a sin 2 8 2 b cos 8 sin 8 c cos 2 8 displaystyle begin aligned theta amp frac 1 2 arctan left frac 2b a c right quad theta in 45 45 sigma X 2 amp frac 1 2 a cdot cos 2 theta 2b cdot cos theta sin theta c cdot sin 2 theta sigma Y 2 amp frac 1 2 a cdot sin 2 theta 2b cdot cos theta sin theta c cdot cos 2 theta end aligned nbsp Example rotations of Gaussian blobs can be seen in the following examples nbsp 8 0 displaystyle theta 0 nbsp nbsp 8 p 6 displaystyle theta pi 6 nbsp nbsp 8 p 3 displaystyle theta pi 3 nbsp Using the following Octave code one can easily see the effect of changing the parameters A 1 x0 0 y0 0 sigma X 1 sigma Y 2 X Y meshgrid 5 1 5 5 1 5 for theta 0 pi 100 pi a cos theta 2 2 sigma X 2 sin theta 2 2 sigma Y 2 b sin 2 theta 4 sigma X 2 sin 2 theta 4 sigma Y 2 c sin theta 2 2 sigma X 2 cos theta 2 2 sigma Y 2 Z A exp a X x0 2 2 b X x0 Y y0 c Y y0 2 surf X Y Z shading interp view 36 36 waitforbuttonpress end Such functions are often used in image processing and in computational models of visual system function see the articles on scale space and affine shape adaptation Also see multivariate normal distribution Higher order Gaussian or super Gaussian function edit A more general formulation of a Gaussian function with a flat top and Gaussian fall off can be taken by raising the content of the exponent to a power P displaystyle P nbsp f x A exp x x 0 2 2 s X 2 P displaystyle f x A exp left left frac x x 0 2 2 sigma X 2 right P right nbsp This function is known as a super Gaussian function and is often used for Gaussian beam formulation 4 This function may also be expressed in terms of the full width at half maximum FWHM represented by w f x A exp ln 2 4 x x 0 2 w 2 P displaystyle f x A exp left ln 2 left 4 frac x x 0 2 w 2 right P right nbsp In a two dimensional formulation a Gaussian function along x displaystyle x nbsp and y displaystyle y nbsp can be combined 5 with potentially different P X displaystyle P X nbsp and P Y displaystyle P Y nbsp to form a rectangular Gaussian distribution f x y A exp x x 0 2 2 s X 2 P X y y 0 2 2 s Y 2 P Y displaystyle f x y A exp left left frac x x 0 2 2 sigma X 2 right P X left frac y y 0 2 2 sigma Y 2 right P Y right nbsp or an elliptical Gaussian distribution f x y A exp x x 0 2 2 s X 2 y y 0 2 2 s Y 2 P displaystyle f x y A exp left left frac x x 0 2 2 sigma X 2 frac y y 0 2 2 sigma Y 2 right P right nbsp Multi dimensional Gaussian function editMain article Multivariate normal distribution In an n displaystyle n nbsp dimensional space a Gaussian function can be defined asf x exp x T C x displaystyle f x exp x mathsf T Cx nbsp where x x 1 x n displaystyle x begin bmatrix x 1 amp cdots amp x n end bmatrix nbsp is a column of n displaystyle n nbsp coordinates C displaystyle C nbsp is a positive definite n n displaystyle n times n nbsp matrix and T displaystyle mathsf T nbsp denotes matrix transposition The integral of this Gaussian function over the whole n displaystyle n nbsp dimensional space is given as R n exp x T C x d x p n det C displaystyle int mathbb R n exp x mathsf T Cx dx sqrt frac pi n det C nbsp It can be easily calculated by diagonalizing the matrix C displaystyle C nbsp and changing the integration variables to the eigenvectors of C displaystyle C nbsp More generally a shifted Gaussian function is defined asf x exp x T C x s T x displaystyle f x exp x mathsf T Cx s mathsf T x nbsp where s s 1 s n displaystyle s begin bmatrix s 1 amp cdots amp s n end bmatrix nbsp is the shift vector and the matrix C displaystyle C nbsp can be assumed to be symmetric C T C displaystyle C mathsf T C nbsp and positive definite The following integrals with this function can be calculated with the same technique R n e x T C x v T x d x p n det C exp 1 4 v T C 1 v M displaystyle int mathbb R n e x mathsf T Cx v mathsf T x dx sqrt frac pi n det C exp left frac 1 4 v mathsf T C 1 v right equiv mathcal M nbsp R n e x T C x v T x a T x d x a T u M where u 1 2 C 1 v displaystyle int mathbb R n e x mathsf T Cx v mathsf T x a mathsf T x dx a T u cdot mathcal M text where u frac 1 2 C 1 v nbsp R n e x T C x v T x x T D x d x u T D u 1 2 tr D C 1 M displaystyle int mathbb R n e x mathsf T Cx v mathsf T x x mathsf T Dx dx left u mathsf T Du frac 1 2 operatorname tr DC 1 right cdot mathcal M nbsp R n e x T C x s T x x L x e x T C x s T x d x 2 tr C L C B 1 4 u T C L C u 2 u T C L s C L s s T L s M displaystyle begin aligned amp int mathbb R n e x mathsf T C x s mathsf T x left frac partial partial x Lambda frac partial partial x right e x mathsf T Cx s mathsf T x dx amp qquad left 2 operatorname tr C Lambda CB 1 4u mathsf T C Lambda Cu 2u mathsf T C Lambda s C Lambda s s mathsf T Lambda s right cdot mathcal M end aligned nbsp where u 1 2 B 1 v v s s B C C textstyle u frac 1 2 B 1 v v s s B C C nbsp Estimation of parameters editSee also Normal distribution Estimation of parameters A number of fields such as stellar photometry Gaussian beam characterization and emission absorption line spectroscopy work with sampled Gaussian functions and need to accurately estimate the height position and width parameters of the function There are three unknown parameters for a 1D Gaussian function a b c and five for a 2D Gaussian function A x 0 y 0 s X s Y displaystyle A x 0 y 0 sigma X sigma Y nbsp The most common method for estimating the Gaussian parameters is to take the logarithm of the data and fit a parabola to the resulting data set 6 7 While this provides a simple curve fitting procedure the resulting algorithm may be biased by excessively weighting small data values which can produce large errors in the profile estimate One can partially compensate for this problem through weighted least squares estimation reducing the weight of small data values but this too can be biased by allowing the tail of the Gaussian to dominate the fit In order to remove the bias one can instead use an iteratively reweighted least squares procedure in which the weights are updated at each iteration 7 It is also possible to perform non linear regression directly on the data without involving the logarithmic data transformation for more options see probability distribution fitting Parameter precision edit Once one has an algorithm for estimating the Gaussian function parameters it is also important to know how precise those estimates are Any least squares estimation algorithm can provide numerical estimates for the variance of each parameter i e the variance of the estimated height position and width of the function One can also use Cramer Rao bound theory to obtain an analytical expression for the lower bound on the parameter variances given certain assumptions about the data 8 9 The noise in the measured profile is either i i d Gaussian or the noise is Poisson distributed The spacing between each sampling i e the distance between pixels measuring the data is uniform The peak is well sampled so that less than 10 of the area or volume under the peak area if a 1D Gaussian volume if a 2D Gaussian lies outside the measurement region The width of the peak is much larger than the distance between sample locations i e the detector pixels must be at least 5 times smaller than the Gaussian FWHM When these assumptions are satisfied the following covariance matrix K applies for the 1D profile parameters a displaystyle a nbsp b displaystyle b nbsp and c displaystyle c nbsp under i i d Gaussian noise and under Poisson noise 8 K Gauss s 2 p d X Q 2 3 2 c 0 1 a 0 2 c a 2 0 1 a 0 2 c a 2 K Poiss 1 2 p 3 a 2 c 0 1 2 0 c a 0 1 2 0 c 2 a displaystyle mathbf K text Gauss frac sigma 2 sqrt pi delta X Q 2 begin pmatrix frac 3 2c amp 0 amp frac 1 a 0 amp frac 2c a 2 amp 0 frac 1 a amp 0 amp frac 2c a 2 end pmatrix qquad mathbf K text Poiss frac 1 sqrt 2 pi begin pmatrix frac 3a 2c amp 0 amp frac 1 2 0 amp frac c a amp 0 frac 1 2 amp 0 amp frac c 2a end pmatrix nbsp where d X displaystyle delta X nbsp is the width of the pixels used to sample the function Q displaystyle Q nbsp is the quantum efficiency of the detector and s displaystyle sigma nbsp indicates the standard deviation of the measurement noise Thus the individual variances for the parameters are in the Gaussian noise case var a 3 s 2 2 p d X Q 2 c var b 2 s 2 c d X p Q 2 a 2 var c 2 s 2 c d X p Q 2 a 2 displaystyle begin aligned operatorname var a amp frac 3 sigma 2 2 sqrt pi delta X Q 2 c operatorname var b amp frac 2 sigma 2 c delta X sqrt pi Q 2 a 2 operatorname var c amp frac 2 sigma 2 c delta X sqrt pi Q 2 a 2 end aligned nbsp and in the Poisson noise case var a 3 a 2 2 p c var b c 2 p a var c c 2 2 p a displaystyle begin aligned operatorname var a amp frac 3a 2 sqrt 2 pi c operatorname var b amp frac c sqrt 2 pi a operatorname var c amp frac c 2 sqrt 2 pi a end aligned nbsp For the 2D profile parameters giving the amplitude A displaystyle A nbsp position x 0 y 0 displaystyle x 0 y 0 nbsp and width s X s Y displaystyle sigma X sigma Y nbsp of the profile the following covariance matrices apply 9 K Gauss s 2 p d X d Y Q 2 2 s X s Y 0 0 1 A s Y 1 A s X 0 2 s X A 2 s Y 0 0 0 0 0 2 s Y A 2 s X 0 0 1 A s y 0 0 2 s X A 2 s y 0 1 A s X 0 0 0 2 s Y A 2 s X K Poisson 1 2 p 3 A s X s Y 0 0 1 s Y 1 s X 0 s X A s Y 0 0 0 0 0 s Y A s X 0 0 1 s Y 0 0 2 s X 3 A s Y 1 3 A 1 s X 0 0 1 3 A 2 s Y 3 A s X displaystyle begin aligned mathbf K text Gauss frac sigma 2 pi delta X delta Y Q 2 amp begin pmatrix frac 2 sigma X sigma Y amp 0 amp 0 amp frac 1 A sigma Y amp frac 1 A sigma X 0 amp frac 2 sigma X A 2 sigma Y amp 0 amp 0 amp 0 0 amp 0 amp frac 2 sigma Y A 2 sigma X amp 0 amp 0 frac 1 A sigma y amp 0 amp 0 amp frac 2 sigma X A 2 sigma y amp 0 frac 1 A sigma X amp 0 amp 0 amp 0 amp frac 2 sigma Y A 2 sigma X end pmatrix 6pt mathbf K operatorname Poisson frac 1 2 pi amp begin pmatrix frac 3A sigma X sigma Y amp 0 amp 0 amp frac 1 sigma Y amp frac 1 sigma X 0 amp frac sigma X A sigma Y amp 0 amp 0 amp 0 0 amp 0 amp frac sigma Y A sigma X amp 0 amp 0 frac 1 sigma Y amp 0 amp 0 amp frac 2 sigma X 3A sigma Y amp frac 1 3A frac 1 sigma X amp 0 amp 0 amp frac 1 3A amp frac 2 sigma Y 3A sigma X end pmatrix end aligned nbsp where the individual parameter variances are given by the diagonal elements of the covariance matrix Discrete Gaussian editMain article Discrete Gaussian kernel nbsp The discrete Gaussian kernel solid compared with the sampled Gaussian kernel dashed for scales t 0 5 1 2 4 displaystyle t 0 5 1 2 4 nbsp One may ask for a discrete analog to the Gaussian this is necessary in discrete applications particularly digital signal processing A simple answer is to sample the continuous Gaussian yielding the sampled Gaussian kernel However this discrete function does not have the discrete analogs of the properties of the continuous function and can lead to undesired effects as described in the article scale space implementation An alternative approach is to use the discrete Gaussian kernel 10 T n t e t I n t displaystyle T n t e t I n t nbsp where I n t displaystyle I n t nbsp denotes the modified Bessel functions of integer order This is the discrete analog of the continuous Gaussian in that it is the solution to the discrete diffusion equation discrete space continuous time just as the continuous Gaussian is the solution to the continuous diffusion equation 10 11 Applications editGaussian functions appear in many contexts in the natural sciences the social sciences mathematics and engineering Some examples include In statistics and probability theory Gaussian functions appear as the density function of the normal distribution which is a limiting probability distribution of complicated sums according to the central limit theorem Gaussian functions are the Green s function for the homogeneous and isotropic diffusion equation and to the heat equation which is the same thing a partial differential equation that describes the time evolution of a mass density under diffusion Specifically if the mass density at time t 0 is given by a Dirac 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 this time varying Gaussian is described by the heat kernel More generally if the initial mass density is f x then the mass density at later times is obtained by taking the convolution of f with a Gaussian function The convolution of a function with a Gaussian is also known as a Weierstrass transform A Gaussian function is the wave function of the ground state of the quantum harmonic oscillator The molecular orbitals used in computational chemistry can be linear combinations of Gaussian functions called Gaussian orbitals see also basis set chemistry Mathematically the derivatives of the Gaussian function can be represented using Hermite functions For unit variance the n th derivative of the Gaussian is the Gaussian function itself multiplied by the n th Hermite polynomial up to scale Consequently Gaussian functions are also associated with the vacuum state in quantum field theory Gaussian beams are used in optical systems microwave systems and lasers In scale space representation Gaussian functions are used as smoothing kernels for generating multi scale representations in computer vision and image processing Specifically derivatives of Gaussians Hermite functions are used as a basis for defining a large number of types of visual operations Gaussian functions are used to define some types of artificial neural networks In fluorescence microscopy a 2D Gaussian function is used to approximate the Airy disk describing the intensity distribution produced by a point source In signal processing they serve to define Gaussian filters such as in image processing where 2D Gaussians are used for Gaussian blurs In digital signal processing one uses a discrete Gaussian kernel which may be defined by sampling a Gaussian or in a different way In geostatistics they have been used for understanding the variability between the patterns of a complex training image They are used with kernel methods to cluster the patterns in the feature space 12 See also editNormal distribution Cauchy distribution Radial basis function kernelReferences edit Squires G L 2001 08 30 Practical Physics 4 ed Cambridge University Press doi 10 1017 cbo9781139164498 ISBN 978 0 521 77940 1 Weisstein Eric W Fourier Transform Gaussian MathWorld Retrieved 19 December 2013 Nawri Nikolai Berechnung von Kovarianzellipsen PDF Archived from the original PDF on 2019 08 14 Retrieved 14 August 2019 Parent A M Morin and P Lavigne Propagation of super Gaussian field distributions Optical and Quantum Electronics 24 9 1992 S1071 S1079 GLAD optical software commands manual Entry on GAUSSIAN command PDF Applied Optics Research 2016 12 15 Caruana Richard A Searle Roger B Heller Thomas Shupack Saul I 1986 Fast algorithm for the resolution of spectra Analytical Chemistry American Chemical Society ACS 58 6 1162 1167 doi 10 1021 ac00297a041 ISSN 0003 2700 a b Hongwei Guo A simple algorithm for fitting a Gaussian function IEEE Sign Proc Mag 28 9 134 137 2011 a b N Hagen M Kupinski and E L Dereniak Gaussian profile estimation in one dimension Appl Opt 46 5374 5383 2007 a b N Hagen and E L Dereniak Gaussian profile estimation in two dimensions Appl Opt 47 6842 6851 2008 a b Lindeberg T Scale space for discrete signals PAMI 12 No 3 March 1990 pp 234 254 Campbell J 2007 The SMM model as a boundary value problem using the discrete diffusion equation Theor Popul Biol 2007 Dec 72 4 539 46 Honarkhah M and Caers J 2010 Stochastic Simulation of Patterns Using Distance Based Pattern Modeling Mathematical Geosciences 42 487 517External links editMathworld includes a proof for the relations between c and FWHM Integrating The Bell Curve MathPages com Haskell Erlang and Perl implementation of Gaussian distribution Bensimhoun Michael N Dimensional Cumulative Function And Other Useful Facts About Gaussians and Normal Densities 2009 Code for fitting Gaussians in ImageJ and Fiji Retrieved from https en wikipedia org w index php title Gaussian function amp oldid 1210820130, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.