C# Class Landis.BDA.NormalRandomVar

Random number generator with a normal distribution.
Uses outward Cartesian form of the Box-Muller method [1958] as described in "Anisotropic density & yet another Box Muller", Marijke van Gans, 15 Dec 2004, available on-line at: http://web.mat.bham.ac.uk/marijke/bm/yabm.html Box, G. E. P., Muller, M. E., 1958. Notes on the generation of random normal deviates. Annals Math. Stat. 29 pp 610-11. All the instances of this class share the uniform random number generator in the Landis.Util.Random class.
Mostrar archivo Open project: LANDIS-II-Foundation/Extensions-Disturbance

Public Methods

Method Description
GenerateNumber ( ) : double

Generates a number.

NormalRandomVar ( double mean, double stdDev ) : System

Initializes a new instance with a specified mean and standard deviation.

Method Details

GenerateNumber() public method

Generates a number.
public GenerateNumber ( ) : double
return double

NormalRandomVar() public method

Initializes a new instance with a specified mean and standard deviation.
public NormalRandomVar ( double mean, double stdDev ) : System
mean double
stdDev double
return System