Helper class for computing samples along a Gaussian distribution curve.
struct
|
Gauss
|
The serialization helper object for values of Gauss.
public
static
readonly
field
|
Serializer
|
||
type
|
ITypeSerializer<Gauss>
|
Creates a new instance of Gauss.
public
constructor
|
Gauss
(float64 expected,
float64 deviation)
|
||
params
|
expected
|
The expected value. | |
deviation
|
[>0]
|
The mean deviation. |
Creates a new instance of Gauss.
public
constructor
|
Gauss
(float64 expected,
float64 deviation,
float64 maximum)
|
||
params
|
expected
|
The expected value. | |
deviation
|
[>0]
|
The mean deviation. | |
maximum
|
The value to return at x:=expected. |
Evaluates the Gaussian curve at the given X-coordinate.
[Pure]
|
||||
public
method
|
Compute
(float64 x)
|
|||
type
|
float64
|
|||
params
|
x
|
The X-coordinate. | ||
returns
|
The resulting Y-coordinate. |