Constructs a GeometricDistribution instance with the given probability of success.

Namespace:  CenterSpace.NMath.Stats
Assembly:  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

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if p is less than or equal to zero or p is greater than one.

See Also