26#define RandBinomial_h 1
28#include "CLHEP/Random/Random.h"
29#include "CLHEP/Utility/memory.h"
61 static double shoot(
long n,
double p );
63 static void shootArray (
const int size,
double* vect,
64 long n=1,
double p=0.5 );
75 double* vect,
long n=1,
83 double fire(
long n,
double p );
85 void fireArray (
const int size,
double* vect);
86 void fireArray (
const int size,
double* vect,
93 std::ostream &
put ( std::ostream & os )
const;
94 std::istream &
get ( std::istream & is );
96 std::string
name()
const;
104 static double genBinomial(
HepRandomEngine *anEngine,
long n,
double p );
106 std::shared_ptr<HepRandomEngine> localEngine;
114#ifdef ENABLE_BACKWARDS_COMPATIBILITY
116using namespace CLHEP;
119#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)