Constructs a random number generator using a RandGenMTest as the
underlying uniform random number generator. The generated deviates will
follow a Geometric distribution with probability of success
CopyC#.
Namespace:
CenterSpace.NMath.Corep
Assembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public RandGenGeometric( double p ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ p As Double _ ) |
| Visual C++ |
|---|
public: RandGenGeometric( double p ) |
Parameters
- p
- Type: System..::.Double
Probability of success.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown of the probability
p |