NMath Reference Guide

## Rand |

Class RandGenLogNormal generates random numbers from a lognormal
distribution.

Inheritance Hierarchy

Syntax

The RandGenLogNormal type exposes the following members.

Constructors

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

RandGenLogNormal | Constructs a RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with default mean of 1.0 and variance of 0.1. | |

RandGenLogNormal(Int32) | Constructs a seeded RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with default mean of 1.0 and variance of 0.1. | |

RandGenLogNormal(RandomNumberGeneratorUniformRandomNumber) | Constructs a random number generator using the given delegate as the underlying uniform random number generator. The generated deviates will follow a lognormal distribution with a mean of 1.0 and variance of 0.1. | |

RandGenLogNormal(Double, Double) | Constructs a RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with the specified mean and variance. | |

RandGenLogNormal(Double, Double, RandomNumberGeneratorUniformRandomNumber) | Constructs a RandGenLogNormal instance using the given delegate as the underlying uniform random number generator. The generated deviates will follow a lognormal distribution with the specified mean and variance. | |

RandGenLogNormal(Double, Double, Int32) | Constructs a seeded RandGenLogNormal instance with the default underlying normal distribution. The generated deviates will follow a lognormal distribution with the specified mean and variance. |

Properties

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

Mean | Gets and sets the mean of the lognormal distribution. | |

NormalMean | Gets and sets the mean of the underlying normal distribution. | |

NormalVariance | Gets and sets the variance of the underlying normal distribution. | |

UniformDeviateMethod | Gets and sets the delegate method for generating uniform deviates between zero and one. | |

Variance | Gets and sets the variance of the lognormal distribution. |

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.
(Overrides RandomNumberGeneratorFill(Double)) | |

Fill(DoubleComplex) |
Fills the given array of double-precision complex numbers with random values.
(Overrides RandomNumberGeneratorFill(DoubleComplex)) | |

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 | Gets the next random deviate. | |

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

NextDoubleComplex |
Method for generating a double precision complex number random deviate.
(Overrides RandomNumberGeneratorNextDoubleComplex) | |

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 underlying normal random number generator with the specified seed. |

Fields

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

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

Remarks

A lognormal distribution has a normal distribution as its logarithm.

C#

x = e ^ ( normal( mu, sigma ))

See Also