Class: CenteredGaussianCurve

CenteredGaussianCurve

CenteredGaussianCurve is a class that can be used to generate values from a gaussian curve symmetrical to the Y-axis.


new CenteredGaussianCurve(variance)

Parameters:
Name Type Description
variance

The variance of the distribution.

Author:
  • derschmale <http://www.derschmale.com>

Methods


<static> fromRadius(radius, epsilon)

Creates a CenteredGaussianCurve with a given "radius" of influence.

Parameters:
Name Type Description
radius

The "radius" of the curve.

epsilon

The minimum value to still be considered within the radius.

Returns:

The curve with the given radius.

Type
CenteredGaussianCurve

evaluate()

Gets the y-value of the curve at the given x-coordinate.