| 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
.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public RandGenGeometric(
double p,
RandomNumberGeneratorUniformRandomNumber rand
)
Public Sub New (
p As Double,
rand As RandomNumberGeneratorUniformRandomNumber
)
public:
RandGenGeometric(
double p,
RandomNumberGeneratorUniformRandomNumber^ rand
)
new :
p : float *
rand : RandomNumberGeneratorUniformRandomNumber -> RandGenGeometric
Parameters
- p Double
- Probability of success.
- rand RandomNumberGeneratorUniformRandomNumber
- A delegate method that returns a uniform random deviate
between zero and one.
Exceptions See Also