Click or drag to resize
DigitalRuneMathHelperGaussian Method (Single, Single, Single, Single)
Computes the Gaussian function y = k * e^( -(x-μ)2/(2σ2) (single precision).

Namespace: DigitalRune.Mathematics
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static float Gaussian(
	float x,
	float coefficient,
	float expectedValue,
	float standardDeviation
)

Parameters

x
Type: SystemSingle
The argument x.
coefficient
Type: SystemSingle
The coefficient k.
expectedValue
Type: SystemSingle
The expected value μ.
standardDeviation
Type: SystemSingle
The standard deviation σ.

Return Value

Type: Single
The height of the Gaussian bell curve at x.
Remarks
This method computes the Gaussian bell curve.
See Also