25 #ifndef GSL_BINOMIAL_RANDOMDEV_H
26 #define GSL_BINOMIAL_RANDOMDEV_H
36 #include <gsl/gsl_rng.h>
37 #include <gsl/gsl_randist.h>
96 void set_p_n (
double,
unsigned int);
98 void set_n (
unsigned int);
108 using RandomDev::operator();
133 return static_cast<double>(
ldev(rthrd));
gsl_rng * rng_
Definition: gsl_binomial_randomdev.h:127
virtual double operator()(void)
Operator delivering doubles.
Definition: randomdev.h:199
void set_p_n(double, unsigned int)
set parameters for p and n p - success probability for single trial n - number of trials ...
Definition: gsl_binomial_randomdev.cpp:59
void set_status(const DictionaryDatum &)
set distribution parameters from SLI dict
Definition: gsl_binomial_randomdev.cpp:76
long ldev()
draw integer
Definition: gsl_binomial_randomdev.cpp:46
Class GSL_BinomialRandomDev.
Definition: gsl_binomial_randomdev.h:81
void set_n(unsigned int)
set n
Definition: gsl_binomial_randomdev.cpp:71
double p_
probability p of binomial distribution
Definition: gsl_binomial_randomdev.h:124
GSL_BinomialRandomDev(RngPtr, double p_s=0.5, unsigned int n_s=1)
Definition: gsl_binomial_randomdev.cpp:33
Abstract base class for access to non-uniform random deviate generators.
Definition: randomdev.h:131
void get_status(DictionaryDatum &) const
get distribution parameters from SLI dict
Definition: gsl_binomial_randomdev.cpp:101
unsigned int n_
parameter n in binomial distribution
Definition: gsl_binomial_randomdev.h:125
virtual long ldev(void)
integer valued functions for discrete distributions
Definition: randomdev.h:206
bool has_ldev() const
true if RDG implements ldev function
Definition: gsl_binomial_randomdev.h:113
void set_p(double)
set p
Definition: gsl_binomial_randomdev.cpp:65