Click or drag to resize

RandGenGeometric(Double, RandomNumberGeneratorUniformRandomNumber) Constructor

Constructs a random number generator using the given delegate as the underlying uniform random number generator. The generated deviates will follow a Geometric distribution with probability of success
C#
.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public RandGenGeometric(
	double p,
	RandomNumberGeneratorUniformRandomNumber rand
)

Parameters

p  Double
Probability of success.
rand  RandomNumberGeneratorUniformRandomNumber
A delegate method that returns a uniform random deviate between zero and one.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown of the probability
C#
is less than zero or greater than one.
See Also