Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
SimRandom.h File Reference

Functions for calculating normally distributed values. More...

Go to the source code of this file.


 The core namespace. All elements of Menge are contained in this namespace.


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...

Detailed Description

Functions for calculating normally distributed values.

This code taken from John Burkardt (see normal.cpp).