HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a Gaussian function, often simply referred to as a Gaussian, is a function of the base form f(x) = \exp (-x^2) and with parametric extension f(x) = a \exp\left( -\frac \right) for arbitrary real constants , and non-zero . It is named after the mathematician
Carl Friedrich Gauss Johann Carl Friedrich Gauss (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observatory and ...
. The
graph Graph may refer to: Mathematics *Graph (discrete mathematics), a structure made of vertices and edges **Graph theory, the study of such graphs and their properties *Graph (topology), a topological space resembling a graph in the sense of discret ...
of a Gaussian is a characteristic symmetric " bell curve" shape. The parameter is the height of the curve's peak, is the position of the center of the peak, and (the
standard deviation In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
, sometimes called the Gaussian RMS width) controls the width of the "bell". Gaussian functions are often used to represent the
probability density function In probability theory, a probability density function (PDF), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
of a
normally distributed In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real number, real-valued random variable. The general form of its probability density function is f(x ...
random variable A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
with
expected value In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
and
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
. In this case, the Gaussian is of the form g(x) = \frac \exp\left( -\frac \frac \right). Gaussian functions are widely used in
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
to describe the
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...
s, in
signal processing Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as audio signal processing, sound, image processing, images, Scalar potential, potential fields, Seismic tomograph ...
to define
Gaussian filter In electronics and signal processing, mainly in digital signal processing, a Gaussian filter is a filter (signal processing), filter whose impulse response is a Gaussian function (or an approximation to it, since a true Gaussian response would h ...
s, in
image processing An image or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
where two-dimensional Gaussians are used for
Gaussian blur In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function (named after mathematician and scientist Carl Friedrich Gauss). It is a widely used effect in graphics software, ...
s, and in mathematics to solve
heat equation In mathematics and physics (more specifically thermodynamics), the heat equation is a parabolic partial differential equation. The theory of the heat equation was first developed by Joseph Fourier in 1822 for the purpose of modeling how a quanti ...
s and
diffusion equation The diffusion equation is a parabolic partial differential equation. In physics, it describes the macroscopic behavior of many micro-particles in Brownian motion, resulting from the random movements and collisions of the particles (see Fick's l ...
s and to define the Weierstrass transform. They are also abundantly used in
quantum chemistry Quantum chemistry, also called molecular quantum mechanics, is a branch of physical chemistry focused on the application of quantum mechanics to chemical systems, particularly towards the quantum-mechanical calculation of electronic contributions ...
to form basis sets.


Properties

Gaussian functions arise by composing the exponential function with a concave
quadratic function In mathematics, a quadratic function of a single variable (mathematics), variable is a function (mathematics), function of the form :f(x)=ax^2+bx+c,\quad a \ne 0, where is its variable, and , , and are coefficients. The mathematical expression, e ...
:f(x) = \exp(\alpha x^2 + \beta x + \gamma),where * \alpha = -1/2c^2, * \beta = b/c^2, * \gamma = \ln a-(b^2 / 2c^2). (Note: a = 1/(\sigma\sqrt) in \ln a , not to be confused with \alpha = -1/2c^2) The Gaussian functions are thus those functions whose
logarithm In mathematics, the logarithm of a number is the exponent by which another fixed value, the base, must be raised to produce that number. For example, the logarithm of to base is , because is to the rd power: . More generally, if , the ...
is a concave quadratic function. The parameter is related to the
full width at half maximum In a distribution, full width at half maximum (FWHM) is the difference between the two values of the independent variable at which the dependent variable is equal to half of its maximum value. In other words, it is the width of a spectrum curve ...
(FWHM) of the peak according to \text = 2 \sqrt\,c \approx 2.35482\,c. The function may then be expressed in terms of the FWHM, represented by : f(x) = a e^. Alternatively, the parameter can be interpreted by saying that the two
inflection point In differential calculus and differential geometry, an inflection point, point of inflection, flex, or inflection (rarely inflexion) is a point on a smooth plane curve at which the curvature changes sign. In particular, in the case of the graph ...
s of the function occur at . The ''full width at tenth of maximum'' (FWTM) for a Gaussian could be of interest and is \text = 2 \sqrt\,c \approx 4.29193\,c. Gaussian functions are analytic, and their limit as is 0 (for the above case of ). Gaussian functions are among those functions that are elementary but lack elementary
antiderivative In calculus, an antiderivative, inverse derivative, primitive function, primitive integral or indefinite integral of a continuous function is a differentiable function whose derivative is equal to the original function . This can be stated ...
s; the
integral In mathematics, an integral is the continuous analog of a Summation, sum, which is used to calculate area, areas, volume, volumes, and their generalizations. Integration, the process of computing an integral, is one of the two fundamental oper ...
of the Gaussian function is the
error function In mathematics, the error function (also called the Gauss error function), often denoted by , is a function \mathrm: \mathbb \to \mathbb defined as: \operatorname z = \frac\int_0^z e^\,\mathrm dt. The integral here is a complex Contour integrat ...
: \int e^ \,dx = \frac \operatorname x + C. Nonetheless, their improper integrals over the whole real line can be evaluated exactly, using the
Gaussian integral The Gaussian integral, also known as the Euler–Poisson integral, is the integral of the Gaussian function f(x) = e^ over the entire real line. Named after the German mathematician Carl Friedrich Gauss, the integral is \int_^\infty e^\,dx = \s ...
\int_^\infty e^ \,dx = \sqrt, and one obtains \int_^\infty a e^ \,dx = ac \cdot \sqrt. This integral is 1 if and only if a = \tfrac (the
normalizing constant In probability theory, a normalizing constant or normalizing factor is used to reduce any probability function to a probability density function with total probability of one. For example, a Gaussian function can be normalized into a probabilit ...
), and in this case the Gaussian is the
probability density function In probability theory, a probability density function (PDF), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
of a
normally distributed In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real number, real-valued random variable. The general form of its probability density function is f(x ...
random variable A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
with
expected value In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
and
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
: g(x) = \frac \exp\left(\frac \right). These Gaussians are plotted in the accompanying figure. The product of two Gaussian functions is a Gaussian, and the
convolution In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions f and g that produces a third function f*g, as the integral of the product of the two ...
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. The product of two Gaussian probability density functions (PDFs), though, is not in general a Gaussian PDF. The Fourier
uncertainty principle The uncertainty principle, also known as Heisenberg's indeterminacy principle, is a fundamental concept in quantum mechanics. It states that there is a limit to the precision with which certain pairs of physical properties, such as position a ...
becomes an equality if and only if (modulated) Gaussian functions are considered. Taking the Fourier transform (unitary, angular-frequency convention) of a Gaussian function with parameters , and yields another Gaussian function, with parameters c, and 1/c. So in particular the Gaussian functions with and c = 1 are kept fixed by the Fourier transform (they are
eigenfunction In mathematics, an eigenfunction of a linear operator ''D'' defined on some function space is any non-zero function f in that space that, when acted upon by ''D'', is only multiplied by some scaling factor called an eigenvalue. As an equation, th ...
s of the Fourier transform with eigenvalue 1). A physical realization is that of the diffraction pattern: for example, a
photographic slide In photography, reversal film or slide film is a type of photographic film that produces a Positive (photography), positive image on a Transparency (optics), transparent base. Instead of negative (photography), negatives and photographic printin ...
whose
transmittance Electromagnetic radiation can be affected in several ways by the medium in which it propagates.  It can be Scattering, scattered, Absorption (electromagnetic radiation), absorbed, and Fresnel equations, reflected and refracted at discontinui ...
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 identity from the
Poisson summation formula In mathematics, the Poisson summation formula is an equation that relates the Fourier series coefficients of the periodic summation of a function (mathematics), function to values of the function's continuous Fourier transform. Consequently, the pe ...
: \sum_ \exp\left(-\pi \cdot \left(\frac\right)^2\right) = c \cdot \sum_ \exp\left(-\pi \cdot (kc)^2\right).


Integral of a Gaussian function

The integral of an arbitrary Gaussian function is\int_^\infty a\,e^\,dx = \ a \, , c, \, \sqrt. An alternative form is\int_^\infty k\,e^\,dx = \int_^\infty k\,e^\,dx = k\,\sqrt\,\exp\left(\frac + h\right), where ''f'' must be strictly positive for the integral to converge.


Relation to standard Gaussian integral

The integral \int_^\infty ae^\,dx for some real constants ''a'', ''b'' and ''c'' > 0 can be calculated by putting it into the form of a
Gaussian integral The Gaussian integral, also known as the Euler–Poisson integral, is the integral of the Gaussian function f(x) = e^ over the entire real line. Named after the German mathematician Carl Friedrich Gauss, the integral is \int_^\infty e^\,dx = \s ...
. First, the constant ''a'' can simply be factored out of the integral. Next, the variable of integration is changed from ''x'' to : a\int_^\infty e^\,dy, and then to z = y/\sqrt: a\sqrt \int_^\infty e^\,dz. Then, using the Gaussian integral identity \int_^\infty e^\,dz = \sqrt, we have \int_^\infty ae^\,dx = a\sqrt.


Two-dimensional Gaussian function

Base form: f(x,y) = \exp(-x^2-y^2) In two dimensions, the power to which ''e'' is raised in the Gaussian function is any negative-definite quadratic form. Consequently, the
level set In mathematics, a level set of a real-valued function of real variables is a set where the function takes on a given constant value , that is: : L_c(f) = \left\~. When the number of independent variables is two, a level set is call ...
s of the Gaussian will always be ellipses. A particular example of a two-dimensional Gaussian function is f(x,y) = A \exp\left(-\left(\frac + \frac \right)\right). Here the coefficient ''A'' is the amplitude, ''x''0, ''y''0 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, ''x''0 = 0, ''y''0 = 0, ''σ''''x'' = ''σ''''y'' = 1. The volume under the Gaussian function is given by V = \int_^\infty \int_^\infty f(x, y)\,dx \,dy = 2 \pi A \sigma_X \sigma_Y. In general, a two-dimensional elliptical Gaussian function is expressed as 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), where the matrix \begin a & b \\ b & c \end is
positive-definite In mathematics, positive definiteness is a property of any object to which a bilinear form or a sesquilinear form may be naturally associated, which is positive-definite. See, in particular: * Positive-definite bilinear form * Positive-definite ...
. Using this formulation, the figure on the right can be created using , , , .


Meaning of parameters for the general equation

For the general form of the equation the coefficient ''A'' is the height of the peak and is the center of the blob. If we set \begin a &= \frac + \frac, \\ b &= -\frac + \frac, \\ c &= \frac + \frac, \end then we rotate the blob by a positive, counter-clockwise angle \theta (for negative, clockwise rotation, invert the signs in the ''b'' coefficient). To get back the coefficients \theta, \sigma_X and \sigma_Y from a, b and c use \begin \theta &= \frac\arctan\left(\frac\right), \quad \theta \in 45, 45 \\ \sigma_X^2 &= \frac, \\ \sigma_Y^2 &= \frac. \end Example rotations of Gaussian blobs can be seen in the following examples: Using the following
Octave In music, an octave (: eighth) or perfect octave (sometimes called the diapason) is an interval between two notes, one having twice the frequency of vibration of the other. The octave relationship is a natural phenomenon that has been referr ...
code, one can easily see the effect of changing the parameters: A = 1; x0 = 0; y0 = 0; sigma_X = 1; sigma_Y = 2;
, Y The comma is a punctuation mark that appears in several variants in different languages. Some typefaces render it as a small line, slightly curved or straight, but inclined from the vertical; others give it the appearance of a miniature fille ...
= 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 An image or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
and in computational models of
visual system The visual system is the physiological basis of visual perception (the ability to perception, detect and process light). The system detects, phototransduction, transduces and interprets information concerning light within the visible range to ...
function—see the articles on
scale space Scale-space theory is a framework for multi-scale signal representation developed by the computer vision, image processing and signal processing communities with complementary motivations from physics and biological vision. It is a formal the ...
and
affine shape adaptation Affine shape adaptation is a methodology for iteratively adapting the shape of the smoothing kernels in an affine group of smoothing kernels to the local image structure in neighbourhood region of a specific image point. Equivalently, affine shape ...
. Also see
multivariate normal distribution In probability theory and statistics, the multivariate normal distribution, multivariate Gaussian distribution, or joint normal distribution is a generalization of the one-dimensional ( univariate) normal distribution to higher dimensions. One d ...
.


Higher-order Gaussian or super-Gaussian function or generalized Gaussian function

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: f(x) = A \exp\left(-\left(\frac\right)^P\right). This function is known as a super-Gaussian function and is often used for Gaussian beam formulation. This function may also be expressed in terms of the
full width at half maximum In a distribution, full width at half maximum (FWHM) is the difference between the two values of the independent variable at which the dependent variable is equal to half of its maximum value. In other words, it is the width of a spectrum curve ...
(FWHM), represented by : f(x) = A \exp\left(-\ln 2\left(4\frac\right)^P\right). In a two-dimensional formulation, a Gaussian function along x and y can be combined with potentially different P_X and P_Y to form a rectangular Gaussian distribution: f(x, y) = A \exp\left(-\left(\frac\right)^ - \left(\frac\right)^\right). or an elliptical Gaussian distribution: f(x , y) = A \exp\left(-\left(\frac + \frac\right)^P\right)


Multi-dimensional Gaussian function

In an n-dimensional space a Gaussian function can be defined as f(x) = \exp(-x^\mathsf C x), where x = \begin x_1 & \cdots & x_n\end is a column of n coordinates, C is a
positive-definite In mathematics, positive definiteness is a property of any object to which a bilinear form or a sesquilinear form may be naturally associated, which is positive-definite. See, in particular: * Positive-definite bilinear form * Positive-definite ...
n \times n matrix, and ^\mathsf denotes matrix transposition. The integral of this Gaussian function over the whole n-dimensional space is given as \int_ \exp(-x^\mathsf C x) \, dx = \sqrt. It can be easily calculated by diagonalizing the matrix C and changing the integration variables to the eigenvectors of C. More generally a shifted Gaussian function is defined as f(x) = \exp(-x^\mathsf C x + s^\mathsf x), where s = \begin s_1 & \cdots & s_n\end is the shift vector and the matrix C can be assumed to be symmetric, C^\mathsf = C, and positive-definite. The following integrals with this function can be calculated with the same technique: \int_ e^ \, dx = \sqrt \exp\left(\frac v^\mathsf C^ v\right) \equiv \mathcal. \int_ e^ (a^\mathsf x) \, dx = (a^T u) \cdot \mathcal, \text u = \frac C^ v. \int_ e^ (x^\mathsf D x) \, dx = \left( u^\mathsf D u + \frac \operatorname (D C^) \right) \cdot \mathcal. \begin & \int_ e^ \left( -\frac \Lambda \frac \right) e^ \, dx \\ & \qquad = \left( 2 \operatorname(C' \Lambda C B^) + 4 u^\mathsf C' \Lambda C u - 2 u^\mathsf (C' \Lambda s + C \Lambda s') + s'^\mathsf \Lambda s \right) \cdot \mathcal, \end where u = \frac B^ v,\ v = s + s',\ B = C + C'.


Estimation of parameters

A number of fields such as stellar photometry,
Gaussian beam In optics, a Gaussian beam is an idealized beam of electromagnetic radiation whose amplitude envelope in the transverse plane is given by a Gaussian function; this also implies a Gaussian intensity (irradiance) profile. This fundamental (or ...
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; \sigma_X,\sigma_Y). 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.Hongwei Guo, "A simple algorithm for fitting a Gaussian function," IEEE Sign. Proc. Mag. 28(9): 134-137 (2011).
/ref> While this provides a simple
curve fitting Curve fitting is the process of constructing a curve, or mathematical function, that has the best fit to a series of data points, possibly subject to constraints. Curve fitting can involve either interpolation, where an exact fit to the data is ...
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 Weighted least squares (WLS), also known as weighted linear regression, is a generalization of ordinary least squares and linear regression in which knowledge of the unequal variance of observations (''heteroscedasticity'') is incorporated into ...
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 The method of iteratively reweighted least squares (IRLS) is used to solve certain optimization problems with objective functions of the form of a ''p''-norm: \mathop_ \sum_^n \big, y_i - f_i (\boldsymbol\beta) \big, ^p, by an iterative meth ...
procedure, in which the weights are updated at each iteration. 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 Probability distribution fitting or simply distribution fitting is the fitting of a probability distribution to a series of data concerning the repeated measurement of a variable phenomenon. The aim of distribution fitting is to prediction, predic ...
.


Parameter precision

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 The method of least squares is a mathematical optimization technique that aims to determine the best fit function by minimizing the sum of the squares of the differences between the observed values and the predicted values of the model. The me ...
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 In estimation theory and statistics, the Cramér–Rao bound (CRB) relates to estimation of a deterministic (fixed, though unknown) parameter. The result is named in honor of Harald Cramér and Calyampudi Radhakrishna Rao, but has also been d ...
theory to obtain an analytical expression for the lower bound on the parameter variances, given certain assumptions about the data.N. Hagen, M. Kupinski, and E. L. Dereniak, "Gaussian profile estimation in one dimension," Appl. Opt. 46:5374–5383 (2007)
/ref>N. Hagen and E. L. Dereniak, "Gaussian profile estimation in two dimensions," Appl. Opt. 47:6842–6851 (2008)
/ref> # 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 In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements of ...
K applies for the 1D profile parameters a, b, and c under i.i.d. Gaussian noise and under Poisson noise: \mathbf_ = \frac \begin \frac &0 &\frac \\ 0 &\frac &0 \\ \frac &0 &\frac \end \ , \qquad \mathbf_\text = \frac \begin \frac &0 &-\frac \\ 0 &\frac &0 \\ -\frac &0 &\frac \end \ , where \delta_X is the width of the pixels used to sample the function, Q is the quantum efficiency of the detector, and \sigma indicates the standard deviation of the measurement noise. Thus, the individual variances for the parameters are, in the Gaussian noise case, \begin \operatorname (a) &= \frac \\ \operatorname (b) &= \frac \\ \operatorname (c) &= \frac \end and in the Poisson noise case, \begin \operatorname (a) &= \frac \\ \operatorname (b) &= \frac \\ \operatorname (c) &= \frac. \end For the 2D profile parameters giving the amplitude A, position (x_0,y_0), and width (\sigma_X,\sigma_Y) of the profile, the following covariance matrices apply: \begin \mathbf_\text = \frac & \begin \frac &0 &0 &\frac &\frac \\ 0 &\frac &0 &0 &0 \\ 0 &0 &\frac &0 &0 \\ \frac &0 &0 &\frac &0 \\ \frac &0 &0 &0 &\frac \end \\ pt\mathbf_ = \frac & \begin \frac &0 &0 &\frac &\frac \\ 0 & \frac &0 &0 &0 \\ 0 &0 &\frac &0 &0 \\ \frac &0 &0 &\frac &\frac \\ \frac &0 &0 &\frac &\frac \end. \end where the individual parameter variances are given by the diagonal elements of the covariance matrix.


Discrete Gaussian

One may ask for a discrete analog to the Gaussian; this is necessary in discrete applications, particularly
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are a ...
. 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: Lindeberg, T., "Scale-space for discrete signals," PAMI(12), No. 3, March 1990, pp. 234–254.
/ref> T(n, t) = e^ I_n(t) where I_n(t) denotes the
modified Bessel function Bessel functions, named after Friedrich Bessel who was the first to systematically study them in 1824, are canonical solutions of Bessel's differential equation x^2 \frac + x \frac + \left(x^2 - \alpha^2 \right)y = 0 for an arbitrary complex ...
s of integer order. This is the discrete analog of the continuous Gaussian in that it is the solution to the discrete
diffusion equation The diffusion equation is a parabolic partial differential equation. In physics, it describes the macroscopic behavior of many micro-particles in Brownian motion, resulting from the random movements and collisions of the particles (see Fick's l ...
(discrete space, continuous time), just as the continuous Gaussian is the solution to the continuous diffusion equation.


Applications

Gaussian functions appear in many contexts in the
natural sciences Natural science or empirical science is one of the branches of science concerned with the description, understanding and prediction of natural phenomena, based on empirical evidence from observation and experimentation. Mechanisms such as peer ...
, the
social sciences Social science (often rendered in the plural as the social sciences) is one of the branches of science, devoted to the study of society, societies and the Social relation, relationships among members within those societies. The term was former ...
,
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, and
engineering Engineering is the practice of using natural science, mathematics, and the engineering design process to Problem solving#Engineering, solve problems within technology, increase efficiency and productivity, and improve Systems engineering, s ...
. Some examples include: * In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
and
probability theory Probability theory or probability calculus is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expre ...
, Gaussian functions appear as the density function of the
normal distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real-valued random variable. The general form of its probability density function is f(x) = \frac ...
, which is a limiting
probability distribution In probability theory and statistics, a probability distribution is a Function (mathematics), function that gives the probabilities of occurrence of possible events for an Experiment (probability theory), experiment. It is a mathematical descri ...
of complicated sums, according to the
central limit theorem In probability theory, the central limit theorem (CLT) states that, under appropriate conditions, the Probability distribution, distribution of a normalized version of the sample mean converges to a Normal distribution#Standard normal distributi ...
. * Gaussian functions are the
Green's function In mathematics, a Green's function (or Green function) is the impulse response of an inhomogeneous linear differential operator defined on a domain with specified initial conditions or boundary conditions. This means that if L is a linear dif ...
for the (homogeneous and isotropic)
diffusion equation The diffusion equation is a parabolic partial differential equation. In physics, it describes the macroscopic behavior of many micro-particles in Brownian motion, resulting from the random movements and collisions of the particles (see Fick's l ...
(and to the
heat equation In mathematics and physics (more specifically thermodynamics), the heat equation is a parabolic partial differential equation. The theory of the heat equation was first developed by Joseph Fourier in 1822 for the purpose of modeling how a quanti ...
, which is the same thing), a
partial differential equation In mathematics, a partial differential equation (PDE) is an equation which involves a multivariable function and one or more of its partial derivatives. The function is often thought of as an "unknown" that solves the equation, similar to ho ...
that describes the time evolution of a mass-density under
diffusion Diffusion is the net movement of anything (for example, atoms, ions, molecules, energy) generally from a region of higher concentration to a region of lower concentration. Diffusion is driven by a gradient in Gibbs free energy or chemical p ...
. 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/ and ''c'' being linearly related to ; this time-varying Gaussian is described by the
heat kernel In the mathematical study of heat conduction and diffusion, a heat kernel is the fundamental solution to the heat equation on a specified domain with appropriate boundary conditions. It is also one of the main tools in the study of the spectrum ...
. More generally, if the initial mass-density is φ(''x''), then the mass-density at later times is obtained by taking the
convolution In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions f and g that produces a third function f*g, as the integral of the product of the two ...
of φ 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 In quantum physics, a wave function (or wavefunction) is a mathematical description of the quantum state of an isolated quantum system. The most common symbols for a wave function are the Greek letters and (lower-case and capital psi (letter) ...
of the
ground state The ground state of a quantum-mechanical system is its stationary state of lowest energy; the energy of the ground state is known as the zero-point energy of the system. An excited state is any state with energy greater than the ground state ...
of the
quantum harmonic oscillator The quantum harmonic oscillator is the quantum-mechanical analog of the classical harmonic oscillator. Because an arbitrary smooth potential can usually be approximated as a harmonic potential at the vicinity of a stable equilibrium point, ...
. * The
molecular orbital In chemistry, a molecular orbital is a mathematical function describing the location and wave-like behavior of an electron in a molecule. This function can be used to calculate chemical and physical properties such as the probability of finding ...
s used in
computational chemistry Computational chemistry is a branch of chemistry that uses computer simulations to assist in solving chemical problems. It uses methods of theoretical chemistry incorporated into computer programs to calculate the structures and properties of mol ...
can be
linear combination In mathematics, a linear combination or superposition is an Expression (mathematics), expression constructed from a Set (mathematics), set of terms by multiplying each term by a constant and adding the results (e.g. a linear combination of ''x'' a ...
s of Gaussian functions called Gaussian orbitals (see also
basis set (chemistry) In theoretical chemistry, theoretical and computational chemistry, a basis set is a set of Function (mathematics), functions (called basis functions) that is used to represent the Wave function, electronic wave function in the Hartree–Fock metho ...
). * Mathematically, the
derivative In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
s 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 In mathematics, the Hermite polynomials are a classical orthogonal polynomial sequence. The polynomials arise in: * signal processing as Hermitian wavelets for wavelet transform analysis * probability, such as the Edgeworth series, as well a ...
, up to scale. * Consequently, Gaussian functions are also associated with the
vacuum state In quantum field theory, the quantum vacuum state (also called the quantum vacuum or vacuum state) is the quantum state with the lowest possible energy. Generally, it contains no physical particles. However, the quantum vacuum is not a simple ...
in
quantum field theory In theoretical physics, quantum field theory (QFT) is a theoretical framework that combines Field theory (physics), field theory and the principle of relativity with ideas behind quantum mechanics. QFT is used in particle physics to construct phy ...
. *
Gaussian beam In optics, a Gaussian beam is an idealized beam of electromagnetic radiation whose amplitude envelope in the transverse plane is given by a Gaussian function; this also implies a Gaussian intensity (irradiance) profile. This fundamental (or ...
s are used in optical systems, microwave systems and lasers. * In
scale space Scale-space theory is a framework for multi-scale signal representation developed by the computer vision, image processing and signal processing communities with complementary motivations from physics and biological vision. It is a formal the ...
representation, Gaussian functions are used as smoothing kernels for generating multi-scale representations in computer vision and
image processing An image or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
. 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 Signal processing is an electrical engineering subfield that focuses on analyzing, modifying and synthesizing ''signals'', such as audio signal processing, sound, image processing, images, Scalar potential, potential fields, Seismic tomograph ...
they serve to define
Gaussian filter In electronics and signal processing, mainly in digital signal processing, a Gaussian filter is a filter (signal processing), filter whose impulse response is a Gaussian function (or an approximation to it, since a true Gaussian response would h ...
s, such as in
image processing An image or picture is a visual representation. An image can be two-dimensional, such as a drawing, painting, or photograph, or three-dimensional, such as a carving or sculpture. Images may be displayed through other media, including a pr ...
where 2D Gaussians are used for
Gaussian blur In image processing, a Gaussian blur (also known as Gaussian smoothing) is the result of blurring an image by a Gaussian function (named after mathematician and scientist Carl Friedrich Gauss). It is a widely used effect in graphics software, ...
s. In
digital signal processing Digital signal processing (DSP) is the use of digital processing, such as by computers or more specialized digital signal processors, to perform a wide variety of signal processing operations. The digital signals processed in this manner are a ...
, one uses a discrete Gaussian kernel, which may be approximated by the Binomial coefficient or sampling a Gaussian. * 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.Honarkhah, M and Caers, J, 2010,
Stochastic Simulation of Patterns Using Distance-Based Pattern Modeling
', Mathematical Geosciences, 42: 487–517


See also

*Bell-shaped function *Cauchy distribution *Normal distribution *Radial basis function kernel


References


Further reading

*


External links


Mathworld, includes a proof for the relations between c and FWHM
* {{MathPages, id=home/kmath045/kmath045, title=Integrating The Bell Curve
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.
Gaussian function, Exponentials Articles containing proofs Articles with example MATLAB/Octave code