CLHEP VERSION Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <RandPoisson.h>
Inheritance diagram for CLHEP::RandPoisson:
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 () |
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 () |
Protected Member Functions | |
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) |
Protected Attributes | |
double | meanMax |
double | defaultMean |
Definition at line 42 of file RandPoisson.h.
CLHEP::RandPoisson::RandPoisson | ( | HepRandomEngine & | anEngine, | |
double | a1 = 1.0 | |||
) | [inline] |
CLHEP::RandPoisson::RandPoisson | ( | HepRandomEngine * | anEngine, | |
double | a1 = 1.0 | |||
) | [inline] |
CLHEP::RandPoisson::~RandPoisson | ( | ) | [virtual] |
Definition at line 44 of file RandPoisson.cc.
static std::string CLHEP::RandPoisson::distributionName | ( | ) | [inline, static] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 94 of file RandPoisson.h.
HepRandomEngine & CLHEP::RandPoisson::engine | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 37 of file RandPoisson.cc.
Referenced by CLHEP::RandPoissonT::engine(), and CLHEP::RandPoissonQ::engine().
long CLHEP::RandPoisson::fire | ( | double | m | ) |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 218 of file RandPoisson.cc.
References CLHEP::gammln(), getMaxMean(), and meanMax.
long CLHEP::RandPoisson::fire | ( | ) |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 214 of file RandPoisson.cc.
References defaultMean.
Referenced by dist_layout(), fireArray(), main(), operator()(), poissonTest(), and testRandPoisson().
void CLHEP::RandPoisson::fireArray | ( | const int | size, | |
long * | vect, | |||
double | m | |||
) |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 276 of file RandPoisson.cc.
References fire().
void CLHEP::RandPoisson::fireArray | ( | const int | size, | |
long * | vect | |||
) |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 270 of file RandPoisson.cc.
References defaultMean, and fire().
std::istream & CLHEP::RandPoisson::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 311 of file RandPoisson.cc.
References defaultMean, CLHEP::DoubConv::longs2double(), meanMax, name(), and CLHEP::possibleKeywordInput().
Referenced by CLHEP::RandPoissonT::get().
HepRandomEngine* CLHEP::RandPoisson::getLocalEngine | ( | ) | [inline, protected] |
Referenced by CLHEP::RandPoissonT::fire().
static double CLHEP::RandPoisson::getMaxMean | ( | ) | [inline, static, protected] |
static double CLHEP::RandPoisson::getOldMean | ( | ) | [inline, static, protected] |
static double* CLHEP::RandPoisson::getPStatus | ( | ) | [inline, static, protected] |
std::string CLHEP::RandPoisson::name | ( | ) | const [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 36 of file RandPoisson.cc.
double CLHEP::RandPoisson::operator() | ( | double | m | ) |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 51 of file RandPoisson.cc.
double CLHEP::RandPoisson::operator() | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 47 of file RandPoisson.cc.
References defaultMean, double, and fire().
std::ostream & CLHEP::RandPoisson::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 282 of file RandPoisson.cc.
References defaultMean, CLHEP::DoubConv::dto2longs(), meanMax, and name().
Referenced by CLHEP::RandPoissonT::put().
static void CLHEP::RandPoisson::setOldMean | ( | double | val | ) | [inline, static, protected] |
static void CLHEP::RandPoisson::setPStatus | ( | double | sq, | |
double | alxm, | |||
double | g1 | |||
) | [inline, static, protected] |
long CLHEP::RandPoisson::shoot | ( | HepRandomEngine * | anEngine, | |
double | m = 1.0 | |||
) | [static] |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 153 of file RandPoisson.cc.
References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), getOldMean(), getPStatus(), setOldMean(), and setPStatus().
long CLHEP::RandPoisson::shoot | ( | double | m = 1.0 |
) | [static] |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
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 CLHEP::RandPoissonT::fire(), CLHEP::RandPoissonT::shoot(), and shootArray().
void CLHEP::RandPoisson::shootArray | ( | HepRandomEngine * | anEngine, | |
const int | size, | |||
long * | vect, | |||
double | m = 1.0 | |||
) | [static] |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 207 of file RandPoisson.cc.
References shoot().
void CLHEP::RandPoisson::shootArray | ( | const int | size, | |
long * | vect, | |||
double | m = 1.0 | |||
) | [static] |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 147 of file RandPoisson.cc.
References shoot().
double CLHEP::RandPoisson::defaultMean [protected] |
Definition at line 100 of file RandPoisson.h.
Referenced by CLHEP::RandPoissonT::fire(), fire(), CLHEP::RandPoissonT::fireArray(), fireArray(), get(), operator()(), and put().
double CLHEP::RandPoisson::meanMax [protected] |