| MathHelperGaussian Method (Double, Double, Double, Double) |
Computes the Gaussian function y = k * e^( -(x-μ)2/(2σ2)
(double-precision).
Namespace: DigitalRune.MathematicsAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static double Gaussian(
double x,
double coefficient,
double expectedValue,
double standardDeviation
)
Public Shared Function Gaussian (
x As Double,
coefficient As Double,
expectedValue As Double,
standardDeviation As Double
) As Double
public:
static double Gaussian(
double x,
double coefficient,
double expectedValue,
double standardDeviation
)
static member Gaussian :
x : float *
coefficient : float *
expectedValue : float *
standardDeviation : float -> float
Parameters
- x
- Type: SystemDouble
The argument x. - coefficient
- Type: SystemDouble
The coefficient k. - expectedValue
- Type: SystemDouble
The expected value μ. - standardDeviation
- Type: SystemDouble
The standard deviation σ.
Return Value
Type:
DoubleThe height of the Gaussian bell curve at x.
Remarks
This method computes the Gaussian bell curve.
See Also