new CenteredGaussianCurve(variance)
Parameters:
| Name | Type | Description |
|---|---|---|
variance |
The variance of the distribution. |
Methods
-
<static> fromRadius(radius, epsilon)
-
Creates a CenteredGaussianCurve with a given "radius" of influence.
Parameters:
Name Type Description radiusThe "radius" of the curve.
epsilonThe minimum value to still be considered within the radius.
Returns:
The curve with the given radius.
-
evaluate()
-
Gets the y-value of the curve at the given x-coordinate.