CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <RandPoisson.h>
Public Member Functions | |
RandPoisson (HepRandomEngine &anEngine, double a1=1.0) | |
RandPoisson (HepRandomEngine *anEngine, double a1=1.0) | |
virtual | ~RandPoisson () |
std::ostream & | put (std::ostream &os) const |
std::istream & | get (std::istream &is) |
long | fire () |
long | fire (double m) |
void | fireArray (const int size, long *vect) |
void | fireArray (const int size, long *vect, double m) |
double | operator() () |
double | operator() (double m) |
std::string | name () const |
HepRandomEngine & | engine () |
RandPoisson (HepRandomEngine &anEngine, double a1=1.0) | |
RandPoisson (HepRandomEngine *anEngine, double a1=1.0) | |
virtual | ~RandPoisson () |
std::ostream & | put (std::ostream &os) const |
std::istream & | get (std::istream &is) |
long | fire () |
long | fire (double m) |
void | fireArray (const int size, long *vect) |
void | fireArray (const int size, long *vect, double m) |
double | operator() () |
double | operator() (double m) |
std::string | name () const |
HepRandomEngine & | engine () |
RandPoisson (HepRandomEngine &anEngine, double a1=1.0) | |
RandPoisson (HepRandomEngine *anEngine, double a1=1.0) | |
virtual | ~RandPoisson () |
std::ostream & | put (std::ostream &os) const |
std::istream & | get (std::istream &is) |
long | fire () |
long | fire (double m) |
void | fireArray (const int size, long *vect) |
void | fireArray (const int size, long *vect, double m) |
double | operator() () |
double | operator() (double m) |
std::string | name () const |
HepRandomEngine & | engine () |
RandPoisson (HepRandomEngine &anEngine, double a1=1.0) | |
RandPoisson (HepRandomEngine *anEngine, double a1=1.0) | |
virtual | ~RandPoisson () |
std::ostream & | put (std::ostream &os) const |
std::istream & | get (std::istream &is) |
long | fire () |
long | fire (double m) |
void | fireArray (const int size, long *vect) |
void | fireArray (const int size, long *vect, double m) |
double | operator() () |
double | operator() (double m) |
std::string | name () const |
HepRandomEngine & | engine () |
![]() | |
HepRandom () | |
HepRandom (long seed) | |
HepRandom (HepRandomEngine &algorithm) | |
HepRandom (HepRandomEngine *algorithm) | |
virtual | ~HepRandom () |
double | flat () |
void | flatArray (const int size, double *vect) |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
HepRandom () | |
HepRandom (long seed) | |
HepRandom (HepRandomEngine &algorithm) | |
HepRandom (HepRandomEngine *algorithm) | |
virtual | ~HepRandom () |
double | flat () |
void | flatArray (const int size, double *vect) |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
HepRandom () | |
HepRandom (long seed) | |
HepRandom (HepRandomEngine &algorithm) | |
HepRandom (HepRandomEngine *algorithm) | |
virtual | ~HepRandom () |
double | flat () |
void | flatArray (const int size, double *vect) |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
HepRandom () | |
HepRandom (long seed) | |
HepRandom (HepRandomEngine &algorithm) | |
HepRandom (HepRandomEngine *algorithm) | |
virtual | ~HepRandom () |
double | flat () |
void | flatArray (const int size, double *vect) |
double | flat (HepRandomEngine *theNewEngine) |
void | flatArray (HepRandomEngine *theNewEngine, const int size, double *vect) |
Static Public Member Functions | |
static long | shoot (double m=1.0) |
static void | shootArray (const int size, long *vect, double m=1.0) |
static long | shoot (HepRandomEngine *anEngine, double m=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, long *vect, double m=1.0) |
static std::string | distributionName () |
static long | shoot (double m=1.0) |
static void | shootArray (const int size, long *vect, double m=1.0) |
static long | shoot (HepRandomEngine *anEngine, double m=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, long *vect, double m=1.0) |
static std::string | distributionName () |
static long | shoot (double m=1.0) |
static void | shootArray (const int size, long *vect, double m=1.0) |
static long | shoot (HepRandomEngine *anEngine, double m=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, long *vect, double m=1.0) |
static std::string | distributionName () |
static long | shoot (double m=1.0) |
static void | shootArray (const int size, long *vect, double m=1.0) |
static long | shoot (HepRandomEngine *anEngine, double m=1.0) |
static void | shootArray (HepRandomEngine *anEngine, const int size, long *vect, double m=1.0) |
static std::string | distributionName () |
![]() | |
static void | setTheSeed (long seed, int lux=3) |
static long | getTheSeed () |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static HepRandom * | getTheGenerator () |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static HepRandomEngine * | getTheEngine () |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::istream & | restoreFullState (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static std::istream & | restoreDistState (std::istream &is) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static void | showEngineStatus () |
static int | createInstance () |
static std::string | distributionName () |
static void | setTheSeed (long seed, int lux=3) |
static long | getTheSeed () |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static HepRandom * | getTheGenerator () |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static HepRandomEngine * | getTheEngine () |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::istream & | restoreFullState (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static std::istream & | restoreDistState (std::istream &is) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static void | showEngineStatus () |
static int | createInstance () |
static std::string | distributionName () |
static void | setTheSeed (long seed, int lux=3) |
static long | getTheSeed () |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static HepRandom * | getTheGenerator () |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static HepRandomEngine * | getTheEngine () |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::istream & | restoreFullState (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static std::istream & | restoreDistState (std::istream &is) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static void | showEngineStatus () |
static int | createInstance () |
static std::string | distributionName () |
static void | setTheSeed (long seed, int lux=3) |
static long | getTheSeed () |
static void | setTheSeeds (const long *seeds, int aux=-1) |
static const long * | getTheSeeds () |
static void | getTheTableSeeds (long *seeds, int index) |
static HepRandom * | getTheGenerator () |
static void | setTheEngine (HepRandomEngine *theNewEngine) |
static HepRandomEngine * | getTheEngine () |
static void | saveEngineStatus (const char filename[]="Config.conf") |
static void | restoreEngineStatus (const char filename[]="Config.conf") |
static std::ostream & | saveFullState (std::ostream &os) |
static std::istream & | restoreFullState (std::istream &is) |
static std::ostream & | saveDistState (std::ostream &os) |
static std::istream & | restoreDistState (std::istream &is) |
static std::ostream & | saveStaticRandomStates (std::ostream &os) |
static std::istream & | restoreStaticRandomStates (std::istream &is) |
static void | showEngineStatus () |
static int | createInstance () |
static std::string | distributionName () |
Protected Member Functions | |
HepRandomEngine * | getLocalEngine () |
HepRandomEngine * | getLocalEngine () |
HepRandomEngine * | getLocalEngine () |
HepRandomEngine * | getLocalEngine () |
Static Protected Member Functions | |
static double | getOldMean () |
static double | getMaxMean () |
static void | setOldMean (double val) |
static double * | getPStatus () |
static void | setPStatus (double sq, double alxm, double g1) |
static double | getOldMean () |
static double | getMaxMean () |
static void | setOldMean (double val) |
static double * | getPStatus () |
static void | setPStatus (double sq, double alxm, double g1) |
static double | getOldMean () |
static double | getMaxMean () |
static void | setOldMean (double val) |
static double * | getPStatus () |
static void | setPStatus (double sq, double alxm, double g1) |
static double | getOldMean () |
static double | getMaxMean () |
static void | setOldMean (double val) |
static double * | getPStatus () |
static void | setPStatus (double sq, double alxm, double g1) |
Protected Attributes | |
double | meanMax |
double | defaultMean |
Additional Inherited Members | |
![]() | |
static const long | seedTable [215][2] |
Definition at line 42 of file Matrix/CLHEP/Random/RandPoisson.h.
|
inline |
|
inline |
|
virtual |
Definition at line 44 of file RandPoisson.cc.
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
|
virtual |
|
inline |
|
inline |
|
virtual |
|
inlinestatic |
Definition at line 94 of file Matrix/CLHEP/Random/RandPoisson.h.
|
inlinestatic |
Definition at line 94 of file Random/CLHEP/Random/RandPoisson.h.
|
inlinestatic |
Definition at line 94 of file RandomObjects/CLHEP/Random/RandPoisson.h.
|
inlinestatic |
Definition at line 94 of file Random/Random/RandPoisson.h.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
Definition at line 37 of file RandPoisson.cc.
Referenced by CLHEP::RandPoissonT::engine(), and CLHEP::RandPoissonQ::engine().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
long CLHEP::RandPoisson::fire | ( | ) |
long CLHEP::RandPoisson::fire | ( | ) |
long CLHEP::RandPoisson::fire | ( | ) |
Definition at line 214 of file RandPoisson.cc.
References defaultMean.
Referenced by dist_layout(), fireArray(), main(), operator()(), poissonTest(), and testRandPoisson().
long CLHEP::RandPoisson::fire | ( | ) |
long CLHEP::RandPoisson::fire | ( | double | m | ) |
long CLHEP::RandPoisson::fire | ( | double | m | ) |
Definition at line 218 of file RandPoisson.cc.
References CLHEP::gammln(), getMaxMean(), and meanMax.
long CLHEP::RandPoisson::fire | ( | double | m | ) |
long CLHEP::RandPoisson::fire | ( | double | m | ) |
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect | ||
) |
Definition at line 270 of file RandPoisson.cc.
References defaultMean, and fire().
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect | ||
) |
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect | ||
) |
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect | ||
) |
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect, | ||
double | m | ||
) |
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect, | ||
double | m | ||
) |
Definition at line 276 of file RandPoisson.cc.
References fire().
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect, | ||
double | m | ||
) |
void CLHEP::RandPoisson::fireArray | ( | const int | size, |
long * | vect, | ||
double | m | ||
) |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, and CLHEP::RandPoissonQ.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, and CLHEP::RandPoissonQ.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonQ, and CLHEP::RandPoissonQ.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, and CLHEP::RandPoissonQ.
Definition at line 311 of file RandPoisson.cc.
References defaultMean, CLHEP::DoubConv::longs2double(), meanMax, name(), and CLHEP::possibleKeywordInput().
Referenced by CLHEP::RandPoissonQ::get(), and CLHEP::RandPoissonT::get().
|
inlineprotected |
Referenced by CLHEP::RandPoissonT::fire(), and CLHEP::RandPoissonQ::fire().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinestaticprotected |
Definition at line 104 of file Matrix/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 104 of file Random/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 104 of file RandomObjects/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 104 of file Random/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 102 of file Matrix/CLHEP/Random/RandPoisson.h.
Referenced by shoot().
|
inlinestaticprotected |
Definition at line 102 of file Random/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 102 of file RandomObjects/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 102 of file Random/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 108 of file Matrix/CLHEP/Random/RandPoisson.h.
Referenced by shoot().
|
inlinestaticprotected |
Definition at line 108 of file Random/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 108 of file RandomObjects/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 108 of file Random/Random/RandPoisson.h.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
Definition at line 36 of file RandPoisson.cc.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
Definition at line 47 of file RandPoisson.cc.
References defaultMean, double, and fire().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonT, and CLHEP::RandPoissonT.
Definition at line 51 of file RandPoisson.cc.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, and CLHEP::RandPoissonQ.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, and CLHEP::RandPoissonQ.
Definition at line 282 of file RandPoisson.cc.
References defaultMean, CLHEP::DoubConv::dto2longs(), meanMax, and name().
Referenced by CLHEP::RandPoissonQ::put(), and CLHEP::RandPoissonT::put().
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonQ, and CLHEP::RandPoissonQ.
|
virtual |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonT, CLHEP::RandPoissonQ, CLHEP::RandPoissonQ, and CLHEP::RandPoissonQ.
|
inlinestaticprotected |
Definition at line 106 of file Matrix/CLHEP/Random/RandPoisson.h.
Referenced by shoot().
|
inlinestaticprotected |
Definition at line 106 of file Random/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 106 of file RandomObjects/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 106 of file Random/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 110 of file Random/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 110 of file RandomObjects/CLHEP/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 110 of file Random/Random/RandPoisson.h.
|
inlinestaticprotected |
Definition at line 110 of file Matrix/CLHEP/Random/RandPoisson.h.
Referenced by shoot().
|
static |
Definition at line 92 of file RandPoisson.cc.
References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), getOldMean(), getPStatus(), CLHEP::HepRandom::getTheEngine(), setOldMean(), and setPStatus().
Referenced by captureStatics(), CLHEP::RandPoissonT::fire(), layout(), randomizeStatics(), CLHEP::RandPoissonT::shoot(), shootArray(), and user_layout().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 153 of file RandPoisson.cc.
References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), getOldMean(), getPStatus(), setOldMean(), and setPStatus().
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 147 of file RandPoisson.cc.
References shoot().
|
static |
|
static |
|
static |
Definition at line 207 of file RandPoisson.cc.
References shoot().
|
static |
|
static |
|
protected |
Definition at line 100 of file Matrix/CLHEP/Random/RandPoisson.h.
Referenced by CLHEP::RandPoissonT::fire(), fire(), CLHEP::RandPoissonQ::fire(), CLHEP::RandPoissonT::fireArray(), fireArray(), CLHEP::RandPoissonQ::fireArray(), get(), operator()(), and put().
|
protected |
Definition at line 99 of file Matrix/CLHEP/Random/RandPoisson.h.