1-D Gaussian function.

Namespace:  AForge.Math
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public double Function(
	double x
)

Parameters

x
Type: System..::.Double
x value.

Return Value

Returns function's value at point x.

Remarks

The function calculates 1-D Gaussian function:

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

See Also