Gaussian function

From Wikipedia, the free encyclopedia

(Redirected from Gaussian curve)
Jump to: navigation, search
Gaussian curves parametrised by expected value and variance (see normal distribution)
Gaussian curves parametrised by expected value and variance (see normal distribution)

In mathematics, a Gaussian function (named after Carl Friedrich Gauss) is a function of the form:

f(x) = a e^{- { (x-b)^2 \over 2 c^2 } }

for some real constants a > 0, b, and c.

The a is the height of the Gaussian peak, b is the position of the center of the peak and c is related to the FWHM of the peak according to

\mathrm{FWHM} = 2 \sqrt{2 \ln(2)}\ c.

Gaussian functions with c2 = 2 are eigenfunctions of the Fourier transform. This means that the Fourier transform of a Gaussian function, f, is not only another Gaussian function but a scalar multiple of f.

Gaussian functions are among those functions that are elementary but lack elementary antiderivatives. Nonetheless their improper integrals over the whole real line can be evaluated exactly (see Gaussian integral):

\int_{-\infty}^\infty e^{-ax^2}\,dx=\sqrt{\frac{\pi}{a}}.

Contents

2-d Gaussian curve
2-d Gaussian curve

A particular example of a two-dimensional Gaussian function is

f(x,y) = A e^{- \left(\frac{(x-x_o)^2}{2\sigma_x^2} \right) - \left(\frac{(y-y_o)^2}{2\sigma_y^2} \right)}.

Here the coefficient A is the amplitude, xo,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, xo = 0, yo = 0, σx = σy = 1.

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

f(x,y) = A \exp \left( - \left(a(x - x_o)^2 + 2b(x-x_o)(y-y_o) + c(y-y_o)^2 \right) \right)

where the matrix

\left[\begin{matrix} a & b \\ b & c \end{matrix}\right]

is positive-definite.

Using this formulation, the figure on the left can be created using A = 1, (xo, yo) = (0, 0), a = c = 1, b = 0.

For the general form of the equation the coefficient A is the amplitude and (xoyo) is the center of the blob.

If we set

a = \left(\frac{\cos\theta}{\sigma_x}\right)^2 + \left(\frac{\sin\theta}{\sigma_y}\right)^2


b = -\frac{\sin2\theta}{\sigma_x^2} + \frac{\sin2\theta}{\sigma_y^2}


c = \left(\frac{\sin\theta}{\sigma_x}\right)^2 + \left(\frac{\cos\theta}{\sigma_y}\right)^2

then we rotate the blob by an angle θ. This can be seen in the following examples:

θ = 0
θ = 0
θ = π / 6
θ = π / 6
θ = π / 3
θ = π / 3

Using the following MATLAB code one can see the effect of changing the parameters easily

A = 1;
x0 = 0; y0 = 0;
for theta = 0:pi/100:pi
sigma_x = 1;
sigma_y = 2;
a = (cos(theta)/sigma_x)^2 + (sin(theta)/sigma_y)^2;
b = -sin(2*theta)/(sigma_x)^2 + sin(2*theta)/(sigma_y)^2 ;
c = (sin(theta)/sigma_x)^2 + (cos(theta)/sigma_y)^2;

[X, Y] = meshgrid(-5:.1:5, -5:.1:5);
Z = A*exp( - (a*(X-x0).^2 + b*(X-x0).*(Y-y0) + c*(Y-y0).^2)) ;
surf(X,Y,Z);shading interp;view(-36,36);axis equal;drawnow
end

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

Also see multivariate normal distribution.

Layman's explanation

The Gaussian function accounts for distribution anomalies, for example the bombardment of molecules to elicit ions in mass spectometry. The kinetic energy of the molecules before ionization would ideally be zero in reference to the direction of acceleration through the magnetic sector. Though if the respective molecule's kinetic energy was negative prior to the moment of ionization by the transferred kinetic energy of the electron, the resultant velocity at the detector would be slower than predicted. Vice versa for a molecule maintaining a relative positive velocity prior to the moment of ionization experiences a faster velocity than predicted for it's weight. The effects are represented in a bell curve whereby the bulk lie within the predicted domain, and deviations from which diminish exponentially in either direction from that point. The aforementioned accounts for a single prescribed distribution, though the effects may be complexed by multiple overlapping bell curves. For visual, imagine a distributed anomaly falling within a neighboring bell, thereby distorting the seen data.

The integral of the Gaussian function is the error function.

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

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.