CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
#include <RandBinomial.h>
Inheritance diagram for CLHEP::RandBinomial:
Public Member Functions | |
RandBinomial (HepRandomEngine &anEngine, long n=1, double p=0.5) | |
RandBinomial (HepRandomEngine *anEngine, long n=1, double p=0.5) | |
virtual | ~RandBinomial () |
double | fire () |
double | fire (long n, double p) |
void | fireArray (const int size, double *vect) |
void | fireArray (const int size, double *vect, long n, double p) |
double | operator() () |
double | operator() (long n, double p) |
std::ostream & | put (std::ostream &os) const |
std::istream & | get (std::istream &is) |
std::string | name () const |
HepRandomEngine & | engine () |
Static Public Member Functions | |
static double | shoot () |
static double | shoot (long n, double p) |
static void | shootArray (const int size, double *vect, long n=1, double p=0.5) |
static double | shoot (HepRandomEngine *anEngine) |
static double | shoot (HepRandomEngine *anEngine, long n, double p) |
static void | shootArray (HepRandomEngine *anEngine, const int size, double *vect, long n=1, double p=0.5) |
static std::string | distributionName () |
Definition at line 36 of file RandBinomial.h.
CLHEP::RandBinomial::RandBinomial | ( | HepRandomEngine & | anEngine, | |
long | n = 1 , |
|||
double | p = 0.5 | |||
) | [inline] |
CLHEP::RandBinomial::RandBinomial | ( | HepRandomEngine * | anEngine, | |
long | n = 1 , |
|||
double | p = 0.5 | |||
) | [inline] |
CLHEP::RandBinomial::~RandBinomial | ( | ) | [virtual] |
Definition at line 32 of file RandBinomial.cc.
static std::string CLHEP::RandBinomial::distributionName | ( | ) | [inline, static] |
HepRandomEngine & CLHEP::RandBinomial::engine | ( | ) | [virtual] |
double CLHEP::RandBinomial::fire | ( | long | n, | |
double | p | |||
) |
Definition at line 50 of file RandBinomial.cc.
double CLHEP::RandBinomial::fire | ( | ) | [inline] |
Referenced by dist_layout(), and fireArray().
void CLHEP::RandBinomial::fireArray | ( | const int | size, | |
double * | vect, | |||
long | n, | |||
double | p | |||
) |
void CLHEP::RandBinomial::fireArray | ( | const int | size, | |
double * | vect | |||
) |
std::istream & CLHEP::RandBinomial::get | ( | std::istream & | is | ) | [virtual] |
Reimplemented from CLHEP::HepRandom.
Definition at line 363 of file RandBinomial.cc.
References CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().
std::string CLHEP::RandBinomial::name | ( | ) | const [virtual] |
double CLHEP::RandBinomial::operator() | ( | long | n, | |
double | p | |||
) | [inline] |
double CLHEP::RandBinomial::operator() | ( | ) | [inline, virtual] |
Reimplemented from CLHEP::HepRandom.
std::ostream & CLHEP::RandBinomial::put | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from CLHEP::HepRandom.
Definition at line 345 of file RandBinomial.cc.
References CLHEP::DoubConv::dto2longs(), and name().
double CLHEP::RandBinomial::shoot | ( | HepRandomEngine * | anEngine, | |
long | n, | |||
double | p | |||
) | [static] |
Definition at line 40 of file RandBinomial.cc.
static double CLHEP::RandBinomial::shoot | ( | HepRandomEngine * | anEngine | ) | [inline, static] |
double CLHEP::RandBinomial::shoot | ( | long | n, | |
double | p | |||
) | [static] |
static double CLHEP::RandBinomial::shoot | ( | ) | [inline, static] |
Referenced by shootArray().
void CLHEP::RandBinomial::shootArray | ( | HepRandomEngine * | anEngine, | |
const int | size, | |||
double * | vect, | |||
long | n = 1 , |
|||
double | p = 0.5 | |||
) | [static] |
void CLHEP::RandBinomial::shootArray | ( | const int | size, | |
double * | vect, | |||
long | n = 1 , |
|||
double | p = 0.5 | |||
) | [static] |