NMath Reference Guide

## Rand |

Class RandGenGeometric generaties random numbers from a Geometric distribution.

Inheritance Hierarchy

Syntax

The RandGenGeometric type exposes the following members.

Constructors

Name | Description | |
---|---|---|

RandGenGeometric(Double) |
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 C# p | |

RandGenGeometric(Double, RandomNumberGeneratorUniformRandomNumber) |
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# p | |

RandGenGeometric(Double, Int32) |
Constructs a random number generator using a seeded RandGenMTest as the
underlying uniform random number generator. The generated deviates will
follow a Geometric distribution with probability of success C# p |

Properties

Name | Description | |
---|---|---|

P | Gets and sets the probability for success for the distribution. | |

UniformDeviateMethod |
Gets and sets the delegate method for generating uniform deviates between
zero and one.
(Inherited from RandomNumberGenerator) |

Methods

Name | Description | |
---|---|---|

Clone |
Creates a deep copy of this random number generator.
(Overrides RandomNumberGeneratorClone) | |

Fill(Double) |
Fills the given array of doubles with random values.
(Inherited from RandomNumberGenerator) | |

Fill(DoubleComplex) |
Fills the given array of double-precision complex numbers with random values.
(Inherited from RandomNumberGenerator) | |

Fill(DoubleDataBlock) |
Fills the given data block with random values.
(Inherited from RandomNumberGenerator) | |

Fill(FloatComplex) |
Fills the given array of single-precision complex numbers with random values.
(Inherited from RandomNumberGenerator) | |

Fill(Single) |
Fills the given array of floats with random values.
(Inherited from RandomNumberGenerator) | |

Next | Generates a random number. | |

NextDouble |
Generates a double precision random number.
(Overrides RandomNumberGeneratorNextDouble) | |

NextDoubleComplex |
Method for generating a double precision complex number random deviate.
(Inherited from RandomNumberGenerator) | |

NextFloat |
Method for generating a single precision random deviate.
(Inherited from RandomNumberGenerator) | |

NextFloatComplex |
Method for generating a single precision complex number random deviate.
(Inherited from RandomNumberGenerator) | |

Reset |
Resets the random number generator using a random seed.
(Inherited from RandomNumberGenerator) | |

Reset(Int32) |
Resets the random number generator with the specified seed.
(Inherited from RandomNumberGenerator) |

Fields

Name | Description | |
---|---|---|

rand_ |
A delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator) |

Remarks

The goemetric distribution is the probability distribution of the
number of failures before the first success. It is supported on the
set {0, 1, 2, 3,...}

See Also