Table of Contents

Class NormalDistribution

Namespace
NominalSystems.Maths
Assembly
NominalSystems.Maths.dll

[NominalSystems.Maths] A normal distribution helper class

public class NormalDistribution
Inheritance
NormalDistribution

Constructors

NormalDistribution(double, double)

Default constructor

public NormalDistribution(double mean, double sigma)

Parameters

mean double

the mean value

sigma double

the standard deviation

Properties

Maximum

[-] The maximum value of the normalized curve based on the standard deviation

public double Maximum { get; }

Property Value

double

RandomSeed

The random generator seed

public long RandomSeed { get; }

Property Value

long

Methods

GetValue(double)

Returns a normalized value based on some input value.

public double GetValue(double value)

Parameters

value double

The value input

Returns

double

NextDouble()

Calculate next random value

public double NextDouble()

Returns

double

SetSeed(long)

Set random generator seed

public void SetSeed(long seed)

Parameters

seed long

the seed