23 #ifndef RandExpZiggurat_h
24 #define RandExpZiggurat_h 1
62 static void shootArray (
const int size,
float* vect,
float mean=1.0 );
63 static void shootArray (
const int size,
double* vect,
double mean=1.0 );
83 inline float fire() {
return fire(defaultMean);};
91 void fireArray (
const int size,
float* vect );
92 void fireArray (
const int size,
double* vect );
93 void fireArray (
const int size,
float* vect,
float mean );
94 void fireArray (
const int size,
double* vect,
double mean );
101 std::ostream &
put ( std::ostream & os )
const;
102 std::istream &
get ( std::istream & is );
104 std::string
name()
const;
128 static unsigned long kn[128],
ke[256];
137 unsigned long iz=jz&255;
static float shoot(HepRandomEngine *anEngine, float mean)
static unsigned long kn[128]
static float ziggurat_REXP(HepRandomEngine *anEngine)
static unsigned long ziggurat_SHR3(HepRandomEngine *anEngine)
float operator()(float mean)
virtual double operator()()
virtual ~RandExpZiggurat()
static float shoot(float mean)
static float ziggurat_UNI(HepRandomEngine *anEngine)
static HepRandomEngine * getTheEngine()
static float ziggurat_efix(unsigned long jz, HepRandomEngine *anEngine)
static unsigned long ke[256]
static void shootArray(const int size, float *vect, float mean=1.0)
RandExpZiggurat(HepRandomEngine &anEngine, double mean=1.0)
void fireArray(const int size, float *vect)
std::ostream & put(std::ostream &os) const
static float shoot(HepRandomEngine *anEngine)
HepRandomEngine & engine()
static bool ziggurat_init()
static bool ziggurat_is_init
static std::string distributionName()