#include <PhotosRandom.h>
|
static bool | init = false |
|
static int | iseed [2] = { 1802, 9373 } |
|
static int | i97 = 96 |
|
static int | j97 = 32 |
|
static double | uran [97] = { 0.0 } |
|
static double | cran = 362436.0 /16777216.0 |
|
static const double | cdran = 7654321.0 /16777216.0 |
|
static const double | cmran = 16777213.0/16777216.0 |
|
Definition at line 20 of file PhotosRandom.h.
void PhotosRandom::initialize |
( |
| ) |
|
|
static |
Definition at line 45 of file PhotosRandom.cxx.
References Photospp::Log::Debug(), i, init, iseed, T, and uran.
Referenced by Photospp::Photos::initialize().
47 long IS1,IS2,IS3,IS4,IS5;
51 IS1=(
iseed[0]/177)%177+2;
53 IS3=(
iseed[1]/169)%178+1;
61 IS5=( ((IS1*IS2)%179)*IS3 )%179;
66 if( (IS4*IS5)%64>=32) S=S+T;
static ostream & Debug(unsigned short int code=0, bool count=true)
static void Photospp::PhotosRandom::initialize |
( |
| ) |
|
|
static |
static double Photospp::PhotosRandom::randomReal |
( |
| ) |
|
|
static |
double PhotosRandom::randomReal |
( |
| ) |
|
|
static |
static void Photospp::PhotosRandom::setSeed |
( |
int |
s1, |
|
|
int |
s2 |
|
) |
| |
|
static |
void PhotosRandom::setSeed |
( |
int |
s1, |
|
|
int |
s2 |
|
) |
| |
|
static |
static const double PhotosRandom::cdran = 7654321.0 /16777216.0 |
|
staticprotected |
static const double PhotosRandom::cmran = 16777213.0/16777216.0 |
|
staticprotected |
static double PhotosRandom::cran = 362436.0 /16777216.0 |
|
staticprotected |
static int PhotosRandom::i97 = 96 |
|
staticprotected |
static bool PhotosRandom::init = false |
|
staticprotected |
static int PhotosRandom::iseed = { 1802, 9373 } |
|
staticprotected |
static int PhotosRandom::j97 = 32 |
|
staticprotected |
static double PhotosRandom::uran = { 0.0 } |
|
staticprotected |
The documentation for this class was generated from the following files: