Click or drag to resize
Accord.NET (logo)

NormalGaussian Method

1-D Gaussian function.

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

Parameters

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

Return Value

Type: Double
Returns function's value at point x.
Remarks

The function calculates 1-D Gaussian function:

f(x) = exp( x * x / ( -2 * s * s ) ) / ( s * sqrt( 2 * PI ) )
See Also