#include <PhotosDebugRandom.h>
|
static int | i97_saved = 0 |
|
static int | j97_saved = 0 |
|
static double | uran_saved [97] = { 0 } |
|
static double | cran_saved = 0 |
|
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 25 of file PhotosDebugRandom.h.
void PhotosRandom::initialize |
( |
| ) |
|
|
staticinherited |
Definition at line 45 of file PhotosRandom.cxx.
References Photospp::Log::Debug(), i, Photospp::PhotosRandom::init, Photospp::PhotosRandom::iseed, T, and Photospp::PhotosRandom::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 |
( |
| ) |
|
|
staticinherited |
void PhotosDebugRandom::print |
( |
| ) |
|
|
static |
Definition at line 48 of file PhotosDebugRandom.cxx.
References Photospp::PhotosRandom::cran, i, Photospp::PhotosRandom::i97, Photospp::Log::Info(), Photospp::PhotosRandom::j97, Photospp::Log::RedirectOutput(), Photospp::Log::RevertOutput(), and Photospp::PhotosRandom::uran.
50 int coutPrec = cout.precision(18);
51 ios_base::fmtflags flags = cout.setf(ios_base::floatfield);
55 cout<<
"double uran_state[97] = { ";
56 for(
int i=0;
i<96;
i++) cout<<
uran[
i]<<
", ";
57 cout<<
uran[96]<<
" };"<<endl<<endl;
58 cout<<
"PhotosDebugRandom::setState( "<<
i97<<
", "<<
j97<<
", "<<
cran<<
", uran_state );"<<endl;
63 cout.precision(coutPrec);
static ostream & Info(bool count=true)
static void RevertOutput()
static void RedirectOutput(void(*func)(), ostream &where=*out)
static double Photospp::PhotosRandom::randomReal |
( |
| ) |
|
|
staticinherited |
double PhotosRandom::randomReal |
( |
| ) |
|
|
staticinherited |
void PhotosDebugRandom::restoreState |
( |
| ) |
|
|
static |
void PhotosDebugRandom::saveState |
( |
| ) |
|
|
static |
void PhotosDebugRandom::setSaveState |
( |
int |
i, |
|
|
int |
j, |
|
|
double |
c, |
|
|
double |
list[97] |
|
) |
| |
|
static |
static void Photospp::PhotosRandom::setSeed |
( |
int |
s1, |
|
|
int |
s2 |
|
) |
| |
|
staticinherited |
void PhotosRandom::setSeed |
( |
int |
s1, |
|
|
int |
s2 |
|
) |
| |
|
staticinherited |
void PhotosDebugRandom::setState |
( |
int |
i, |
|
|
int |
j, |
|
|
double |
c, |
|
|
double |
list[97] |
|
) |
| |
|
static |
static const double PhotosRandom::cdran = 7654321.0 /16777216.0 |
|
staticprotectedinherited |
static const double PhotosRandom::cmran = 16777213.0/16777216.0 |
|
staticprotectedinherited |
static double PhotosRandom::cran = 362436.0 /16777216.0 |
|
staticprotectedinherited |
double PhotosDebugRandom::cran_saved = 0 |
|
staticprivate |
static int PhotosRandom::i97 = 96 |
|
staticprotectedinherited |
int PhotosDebugRandom::i97_saved = 0 |
|
staticprivate |
static bool PhotosRandom::init = false |
|
staticprotectedinherited |
static int PhotosRandom::iseed = { 1802, 9373 } |
|
staticprotectedinherited |
static int PhotosRandom::j97 = 32 |
|
staticprotectedinherited |
int PhotosDebugRandom::j97_saved = 0 |
|
staticprivate |
static double PhotosRandom::uran = { 0.0 } |
|
staticprotectedinherited |
double PhotosDebugRandom::uran_saved = { 0 } |
|
staticprivate |
The documentation for this class was generated from the following files: