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
Properties
Maximum
[-] The maximum value of the normalized curve based on the standard deviation
public double Maximum { get; }
Property Value
RandomSeed
The random generator seed
public long RandomSeed { get; }
Property Value
Methods
GetValue(double)
Returns a normalized value based on some input value.
public double GetValue(double value)
Parameters
value
doubleThe value input
Returns
NextDouble()
Calculate next random value
public double NextDouble()
Returns
SetSeed(long)
Set random generator seed
public void SetSeed(long seed)
Parameters
seed
longthe seed