Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Functions for calculating normally distributed values. More...
Go to the source code of this file.
Namespaces | |
Menge | |
The core namespace. All elements of Menge are contained in this namespace. | |
Functions | |
void | Menge::Math::r4_normalR (float a, float b, float &val1, float &val2, int *seed) |
Generates a quasi-thread-safe, normally distributed random number. More... | |
void | Menge::Math::r4_normal_01R (float &val1, float &val2, int *seed) |
The Box-Muller method for computing two normally distributed values at the same time (with mean of 0 and standard deviation of 1. More... | |
float | Menge::Math::r4_uniform_01 (int *seed) |
A uniformly generated random number in the range [0, 1]. More... | |
Functions for calculating normally distributed values.
This code taken from John Burkardt (see normal.cpp).