| MathHelperGaussian Method (Single, Single, Single, Single) |
Computes the Gaussian function y = k * e^( -(x-μ)2/(2σ2)
(single precision).
Namespace: DigitalRune.MathematicsAssembly: 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
)
Public Shared Function Gaussian (
x As Single,
coefficient As Single,
expectedValue As Single,
standardDeviation As Single
) As Single
public:
static float Gaussian(
float x,
float coefficient,
float expectedValue,
float standardDeviation
)
static member Gaussian :
x : float32 *
coefficient : float32 *
expectedValue : float32 *
standardDeviation : float32 -> float32
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:
SingleThe height of the Gaussian bell curve at x.
Remarks
This method computes the Gaussian bell curve.
See Also