Constructs a GeometricDistribution instance with the given probability
of success.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public GeometricDistribution( double p ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ p As Double _ ) |
| Visual C++ |
|---|
public: GeometricDistribution( double p ) |
Parameters
- p
- Type: System..::.Double
The probability of success on each trial. Must be greater than zero and less than or equal to one.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if p is less than or equal to zero or p is greater than one. |