25#define RandBinomial_h 1
60 static double shoot(
long n,
double p );
62 static void shootArray (
const int size,
double* vect,
63 long n=1,
double p=0.5 );
74 double* vect,
long n=1,
82 double fire(
long n,
double p );
84 void fireArray (
const int size,
double* vect);
85 void fireArray (
const int size,
double* vect,
92 std::ostream &
put ( std::ostream & os )
const;
93 std::istream &
get ( std::istream & is );
95 std::string
name()
const;
103 static double genBinomial(
HepRandomEngine *anEngine,
long n,
double p );
105 std::shared_ptr<HepRandomEngine> localEngine;
113#include "CLHEP/Random/RandBinomial.icc"
static std::string distributionName()
static double shoot(HepRandomEngine *anEngine)
HepRandomEngine & engine()
RandBinomial(HepRandomEngine *anEngine, long n=1, double p=0.5)
void fireArray(const int size, double *vect)
static void shootArray(const int size, double *vect, long n=1, double p=0.5)
RandBinomial(HepRandomEngine &anEngine, long n=1, double p=0.5)
double operator()(long n, double p)
std::ostream & put(std::ostream &os) const
std::istream & get(std::istream &is)