#include <Random.h>
Public Member Functions | |
Random () | |
Constructor. | |
~Random () | |
Destructor. | |
void | warmup_random (float) |
Get random off and running. | |
float | rndreal (float, float) |
Real random number between specified limits. | |
int | rnd (int, int) |
Pick a random integer between low and high. | |
float | randomperc () |
Fetch a single random number between 0.0 and 1.0. | |
double | randomnormaldeviate () |
Random normal deviate after ACM algorithm 267 / Box-Muller Method. | |
void | randomize () |
Initialize random numbers batch. | |
double | noise (double, double) |
Normal noise with specified mean & std dev: mu & sigma. | |
void | initrandomnormaldeviate () |
int | flip (float) |
Flip a biased coin - true if heads. | |
void | advance_random () |
advance_random | |
double | randreal2 (void) |
randreal2 | |
double | Gauss (double sigma) |
Gauss distribution. | |
double | N (double m, double sigma) |
N. | |
void | initrandom (int seed) |
Initialize the random seed. | |
int | randint (int lo, int hi) |
Public Attributes | |
int | Seed |
int | isinit |
float | Rseed |
Random numbers seed. | |
double | oldrand [55] |
Array of 55 random numbers. | |
int | jrand |
Current random number. | |
double | rndx2 |
Variable used with random normal deviate. | |
int | rndcalcflag |
Variable used with random normal deviate. |
|
Constructor of the class Definition at line 26 of file Random.cpp. |
|
Destructor of the class Definition at line 36 of file Random.cpp. |
|
Definition at line 56 of file Random.cpp. References oldrand. Referenced by randomperc(), and warmup_random(). |
|
Definition at line 43 of file Random.cpp. References randomperc(). Referenced by BinaryRealGene::bitFlipMutation(), BinaryGrayRealGene::bitFlipMutation(), and BinaryGene::bitFlipMutation(). |
|
Definition at line 248 of file Random.cpp. References Uniform. Referenced by N(). |
|
Definition at line 334 of file Random.cpp. References Seed. Referenced by Paes::Paes(). |
|
Initialization routine for randomnormaldeviate Definition at line 80 of file Random.cpp. References rndcalcflag. |
|
Definition at line 325 of file Random.cpp. References Gauss(). |
|
Definition at line 90 of file Random.cpp. References randomnormaldeviate(). |
|
Definition at line 340 of file Random.cpp. References randreal2(). |
|
Definition at line 99 of file Random.cpp. References jrand, oldrand, Rseed, and warmup_random(). Referenced by Paes::Paes(). |
|
Definition at line 115 of file Random.cpp. References randomperc(), rndcalcflag, and rndx2. Referenced by noise(). |
|
Fetch a single random number between 0.0 and 1.0 - Subtractive Method See Knuth, D. (1969), v. 2 for details name changed from random() to avoid library conflicts on some machines Definition at line 147 of file Random.cpp. References advance_random(), jrand, and oldrand. Referenced by flip(), randomnormaldeviate(), rnd(), and rndreal(). |
|
Definition at line 229 of file Random.cpp. Referenced by Paes::Paes(), and randint(). |
|
Definition at line 166 of file Random.cpp. References randomperc(). Referenced by BinaryGene::BinaryGene(), BinaryGrayRealGene::BinaryGrayRealGene(), and BinaryRealGene::BinaryRealGene(). |
|
Definition at line 189 of file Random.cpp. References randomperc(). Referenced by BinaryGrayRealGene::BinaryGrayRealGene(), BinaryGrayRealGene::bitFlipMutation(), RealGene::polynomialMutation(), RealGene::randomMutation(), RealGene::RealGene(), and RealGene::uniformMutation(). |
|
Definition at line 198 of file Random.cpp. References advance_random(), jrand, and oldrand. Referenced by randomize(). |
|
Definition at line 23 of file Random.h. Referenced by Random(), and randreal2(). |
|
Definition at line 27 of file Random.h. Referenced by randomize(), randomperc(), and warmup_random(). |
|
Definition at line 26 of file Random.h. Referenced by advance_random(), randomize(), randomperc(), and warmup_random(). |
|
Definition at line 29 of file Random.h. Referenced by initrandomnormaldeviate(), and randomnormaldeviate(). |
|
Definition at line 28 of file Random.h. Referenced by randomnormaldeviate(). |
|
Definition at line 25 of file Random.h. Referenced by Paes::Paes(), and randomize(). |
|
Definition at line 22 of file Random.h. Referenced by initrandom(), Random(), and randreal2(). |