Enumeration specifying different methods of random number generation.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public enum GenerationMethod |
| Visual Basic (Declaration) |
|---|
Public Enumeration GenerationMethod |
| Visual C++ |
|---|
public enum class GenerationMethod |
Members
| Member name | Description | |
|---|---|---|
| BoxMuller |
Generates normally distributed random number x thru the pair of
uniformly distributed numbers u1 and u2 according to the formula:
x=sqrt(-ln(u1))*sin(2*Pi*u2)
| |
| BoxMuller2 |
Generates pair of normally distributed random numbers x1 and x2
thru the pair of uniformly dustributed numbers u1 and u2
according to the formula:
x1=sqrt(-ln(u1))*sin(2*Pi*u2)
x2=sqrt(-ln(u1))*cos(2*Pi*u2)
| |
| InverseCumulativeDistribution |
Inverse cumulative distribution function method.
|