CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
CLHEP::RandPoisson Class Reference

#include <RandPoisson.h>

Inheritance diagram for CLHEP::RandPoisson:
CLHEP::HepRandom CLHEP::HepRandom CLHEP::HepRandom CLHEP::HepRandom CLHEP::RandPoissonQ CLHEP::RandPoissonQ CLHEP::RandPoissonQ CLHEP::RandPoissonQ CLHEP::RandPoissonT CLHEP::RandPoissonT CLHEP::RandPoissonT CLHEP::RandPoissonT

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 ()
 
- Public Member Functions inherited from CLHEP::HepRandom
 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 Public Member Functions inherited from CLHEP::HepRandom
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 Protected Attributes inherited from CLHEP::HepRandom
static const long seedTable [215][2]
 

Detailed Description

Author

Definition at line 42 of file Matrix/CLHEP/Random/RandPoisson.h.

Constructor & Destructor Documentation

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.

CLHEP::RandPoisson::RandPoisson ( HepRandomEngine &  anEngine,
double  a1 = 1.0 
)
inline
CLHEP::RandPoisson::RandPoisson ( HepRandomEngine *  anEngine,
double  a1 = 1.0 
)
inline
virtual CLHEP::RandPoisson::~RandPoisson ( )
virtual
CLHEP::RandPoisson::RandPoisson ( HepRandomEngine &  anEngine,
double  a1 = 1.0 
)
inline
CLHEP::RandPoisson::RandPoisson ( HepRandomEngine *  anEngine,
double  a1 = 1.0 
)
inline
virtual CLHEP::RandPoisson::~RandPoisson ( )
virtual
CLHEP::RandPoisson::RandPoisson ( HepRandomEngine &  anEngine,
double  a1 = 1.0 
)
inline
CLHEP::RandPoisson::RandPoisson ( HepRandomEngine *  anEngine,
double  a1 = 1.0 
)
inline
virtual CLHEP::RandPoisson::~RandPoisson ( )
virtual

Member Function Documentation

static std::string CLHEP::RandPoisson::distributionName ( )
inlinestatic

Definition at line 94 of file Matrix/CLHEP/Random/RandPoisson.h.

static std::string CLHEP::RandPoisson::distributionName ( )
inlinestatic

Definition at line 94 of file Random/CLHEP/Random/RandPoisson.h.

static std::string CLHEP::RandPoisson::distributionName ( )
inlinestatic

Definition at line 94 of file RandomObjects/CLHEP/Random/RandPoisson.h.

static std::string CLHEP::RandPoisson::distributionName ( )
inlinestatic

Definition at line 94 of file Random/Random/RandPoisson.h.

HepRandomEngine& CLHEP::RandPoisson::engine ( )
virtual
HepRandomEngine& CLHEP::RandPoisson::engine ( )
virtual

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

HepRandomEngine & CLHEP::RandPoisson::engine ( )
virtual
HepRandomEngine& CLHEP::RandPoisson::engine ( )
virtual
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 
)
std::istream& CLHEP::RandPoisson::get ( std::istream &  is)
virtual

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonT, and CLHEP::RandPoissonQ.

std::istream& CLHEP::RandPoisson::get ( std::istream &  is)
virtual
std::istream& CLHEP::RandPoisson::get ( std::istream &  is)
virtual
std::istream & CLHEP::RandPoisson::get ( std::istream &  is)
virtual
HepRandomEngine* CLHEP::RandPoisson::getLocalEngine ( )
inlineprotected
HepRandomEngine* CLHEP::RandPoisson::getLocalEngine ( )
inlineprotected
HepRandomEngine* CLHEP::RandPoisson::getLocalEngine ( )
inlineprotected
HepRandomEngine* CLHEP::RandPoisson::getLocalEngine ( )
inlineprotected
static double CLHEP::RandPoisson::getMaxMean ( )
inlinestaticprotected

Definition at line 104 of file Matrix/CLHEP/Random/RandPoisson.h.

Referenced by fire(), and shoot().

static double CLHEP::RandPoisson::getMaxMean ( )
inlinestaticprotected

Definition at line 104 of file Random/CLHEP/Random/RandPoisson.h.

static double CLHEP::RandPoisson::getMaxMean ( )
inlinestaticprotected

Definition at line 104 of file RandomObjects/CLHEP/Random/RandPoisson.h.

static double CLHEP::RandPoisson::getMaxMean ( )
inlinestaticprotected

Definition at line 104 of file Random/Random/RandPoisson.h.

static double CLHEP::RandPoisson::getOldMean ( )
inlinestaticprotected

Definition at line 102 of file Matrix/CLHEP/Random/RandPoisson.h.

Referenced by shoot().

static double CLHEP::RandPoisson::getOldMean ( )
inlinestaticprotected

Definition at line 102 of file Random/CLHEP/Random/RandPoisson.h.

static double CLHEP::RandPoisson::getOldMean ( )
inlinestaticprotected

Definition at line 102 of file RandomObjects/CLHEP/Random/RandPoisson.h.

static double CLHEP::RandPoisson::getOldMean ( )
inlinestaticprotected

Definition at line 102 of file Random/Random/RandPoisson.h.

static double* CLHEP::RandPoisson::getPStatus ( )
inlinestaticprotected

Definition at line 108 of file Matrix/CLHEP/Random/RandPoisson.h.

Referenced by shoot().

static double* CLHEP::RandPoisson::getPStatus ( )
inlinestaticprotected

Definition at line 108 of file Random/CLHEP/Random/RandPoisson.h.

static double* CLHEP::RandPoisson::getPStatus ( )
inlinestaticprotected

Definition at line 108 of file RandomObjects/CLHEP/Random/RandPoisson.h.

static double* CLHEP::RandPoisson::getPStatus ( )
inlinestaticprotected

Definition at line 108 of file Random/Random/RandPoisson.h.

std::string CLHEP::RandPoisson::name ( ) const
virtual
std::string CLHEP::RandPoisson::name ( ) const
virtual

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

std::string CLHEP::RandPoisson::name ( ) const
virtual
std::string CLHEP::RandPoisson::name ( ) const
virtual
double CLHEP::RandPoisson::operator() ( )
virtual
double CLHEP::RandPoisson::operator() ( )
virtual
double CLHEP::RandPoisson::operator() ( )
virtual

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonQ, and CLHEP::RandPoissonT.

double CLHEP::RandPoisson::operator() ( )
virtual
double CLHEP::RandPoisson::operator() ( double  m)
double CLHEP::RandPoisson::operator() ( double  m)

Definition at line 51 of file RandPoisson.cc.

References double, and fire().

double CLHEP::RandPoisson::operator() ( double  m)
double CLHEP::RandPoisson::operator() ( double  m)
std::ostream& CLHEP::RandPoisson::put ( std::ostream &  os) const
virtual

Reimplemented from CLHEP::HepRandom.

Reimplemented in CLHEP::RandPoissonT, and CLHEP::RandPoissonQ.

std::ostream & CLHEP::RandPoisson::put ( std::ostream &  os) const
virtual
std::ostream& CLHEP::RandPoisson::put ( std::ostream &  os) const
virtual
std::ostream& CLHEP::RandPoisson::put ( std::ostream &  os) const
virtual
static void CLHEP::RandPoisson::setOldMean ( double  val)
inlinestaticprotected

Definition at line 106 of file Matrix/CLHEP/Random/RandPoisson.h.

Referenced by shoot().

static void CLHEP::RandPoisson::setOldMean ( double  val)
inlinestaticprotected

Definition at line 106 of file Random/CLHEP/Random/RandPoisson.h.

static void CLHEP::RandPoisson::setOldMean ( double  val)
inlinestaticprotected

Definition at line 106 of file RandomObjects/CLHEP/Random/RandPoisson.h.

static void CLHEP::RandPoisson::setOldMean ( double  val)
inlinestaticprotected

Definition at line 106 of file Random/Random/RandPoisson.h.

static void CLHEP::RandPoisson::setPStatus ( double  sq,
double  alxm,
double  g1 
)
inlinestaticprotected

Definition at line 110 of file Random/CLHEP/Random/RandPoisson.h.

static void CLHEP::RandPoisson::setPStatus ( double  sq,
double  alxm,
double  g1 
)
inlinestaticprotected

Definition at line 110 of file RandomObjects/CLHEP/Random/RandPoisson.h.

static void CLHEP::RandPoisson::setPStatus ( double  sq,
double  alxm,
double  g1 
)
inlinestaticprotected

Definition at line 110 of file Random/Random/RandPoisson.h.

static void CLHEP::RandPoisson::setPStatus ( double  sq,
double  alxm,
double  g1 
)
inlinestaticprotected

Definition at line 110 of file Matrix/CLHEP/Random/RandPoisson.h.

Referenced by shoot().

long CLHEP::RandPoisson::shoot ( double  m = 1.0)
static
static long CLHEP::RandPoisson::shoot ( double  m = 1.0)
static
static long CLHEP::RandPoisson::shoot ( double  m = 1.0)
static
static long CLHEP::RandPoisson::shoot ( double  m = 1.0)
static
static long CLHEP::RandPoisson::shoot ( HepRandomEngine *  anEngine,
double  m = 1.0 
)
static
long CLHEP::RandPoisson::shoot ( HepRandomEngine *  anEngine,
double  m = 1.0 
)
static
static long CLHEP::RandPoisson::shoot ( HepRandomEngine *  anEngine,
double  m = 1.0 
)
static
static long CLHEP::RandPoisson::shoot ( HepRandomEngine *  anEngine,
double  m = 1.0 
)
static
static void CLHEP::RandPoisson::shootArray ( const int  size,
long *  vect,
double  m = 1.0 
)
static
static void CLHEP::RandPoisson::shootArray ( const int  size,
long *  vect,
double  m = 1.0 
)
static
void CLHEP::RandPoisson::shootArray ( const int  size,
long *  vect,
double  m = 1.0 
)
static

Definition at line 147 of file RandPoisson.cc.

References shoot().

static void CLHEP::RandPoisson::shootArray ( const int  size,
long *  vect,
double  m = 1.0 
)
static
static void CLHEP::RandPoisson::shootArray ( HepRandomEngine *  anEngine,
const int  size,
long *  vect,
double  m = 1.0 
)
static
void CLHEP::RandPoisson::shootArray ( HepRandomEngine *  anEngine,
const int  size,
long *  vect,
double  m = 1.0 
)
static

Definition at line 207 of file RandPoisson.cc.

References shoot().

static void CLHEP::RandPoisson::shootArray ( HepRandomEngine *  anEngine,
const int  size,
long *  vect,
double  m = 1.0 
)
static
static void CLHEP::RandPoisson::shootArray ( HepRandomEngine *  anEngine,
const int  size,
long *  vect,
double  m = 1.0 
)
static

Member Data Documentation

double CLHEP::RandPoisson::defaultMean
protected
double CLHEP::RandPoisson::meanMax
protected

Definition at line 99 of file Matrix/CLHEP/Random/RandPoisson.h.

Referenced by fire(), get(), and put().


The documentation for this class was generated from the following files: