CLHEP 2.0.4.7 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 m=1.0) | |
RandPoisson (HepRandomEngine *anEngine, double m=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 | |
RandPoisson (const RandPoisson &d) | |
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 g) |
Protected Attributes | |
double | meanMax |
double | defaultMean |
Definition at line 41 of file RandPoisson.h.
CLHEP::RandPoisson::RandPoisson | ( | HepRandomEngine & | anEngine, | |
double | m = 1.0 | |||
) | [inline] |
CLHEP::RandPoisson::RandPoisson | ( | HepRandomEngine * | anEngine, | |
double | m = 1.0 | |||
) | [inline] |
CLHEP::RandPoisson::~RandPoisson | ( | ) | [virtual] |
Definition at line 44 of file RandPoisson.cc.
CLHEP::RandPoisson::RandPoisson | ( | const RandPoisson & | d | ) | [protected] |
Definition at line 48 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 93 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 227 of file RandPoisson.cc.
References CLHEP::HepRandomEngine::flat(), CLHEP::gammln(), getMaxMean(), and meanMax.
long CLHEP::RandPoisson::fire | ( | ) |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 223 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 287 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 279 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 324 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 56 of file RandPoisson.cc.
double CLHEP::RandPoisson::operator() | ( | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 52 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 295 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 | g | |||
) | [inline, static, protected] |
long CLHEP::RandPoisson::shoot | ( | HepRandomEngine * | anEngine, | |
double | m = 1.0 | |||
) | [static] |
Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.
Definition at line 160 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 97 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 214 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 152 of file RandPoisson.cc.
References shoot().
double CLHEP::RandPoisson::defaultMean [protected] |
Definition at line 102 of file RandPoisson.h.
Referenced by CLHEP::RandPoissonT::fire(), fire(), CLHEP::RandPoissonT::fireArray(), fireArray(), get(), operator()(), and put().
double CLHEP::RandPoisson::meanMax [protected] |