Click or drag to resize
Accord.NET (logo)

NormalGaussian2D Method

2-D Gaussian function.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static double Gaussian2D(
	double sigmaSquared,
	double x,
	double y
)
Request Example View Source

Parameters

sigmaSquared
Type: SystemDouble
The variance parameter σ² (sigma squared).
x
Type: SystemDouble
x value.
y
Type: SystemDouble
y value.

Return Value

Type: Double
Returns function's value at point (x, y).
Remarks

The function calculates 2-D Gaussian function:

f(x, y) = exp( x * x + y * y / ( -2 * s * s ) ) / ( s * s * 2 * PI )
See Also