TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

struct Gauss in Tinman.Core.Math

Helper class for computing samples along a Gaussian distribution curve.

struct Gauss  

Serialization

Serializer

The serialization helper object for values of Gauss.

public static readonly field Serializer
type ITypeSerializer<Gauss>

Public / Constructors

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.

Public / Methods

Compute

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.