Class GSL_BinomialRandomDev.
More...
#include <gsl_binomial_randomdev.h>
|
double | p_ |
| probability p of binomial distribution More...
|
|
unsigned int | n_ |
| parameter n in binomial distribution More...
|
|
gsl_rng * | rng_ |
|
Class GSL_BinomialRandomDev.
Generates an RNG which returns Binomial(k;p;n) distributed random numbers out of an RNG which returns binomially distributed random numbers:
p(k) = (n! / k!(n-k)!) p^k (1-p)^(n-k) , 0<=k<=n, n<0
Arguments:
- pointer to an RNG
- parameter p (optional, default = 0.5)
- parameter n (optional, default = 1)
- See also
- http://www.gnu.org/software/gsl/manual/html_node/The-Binomial-Distribution.html
librandom::GSL_BinomialRandomDev::GSL_BinomialRandomDev |
( |
RngPtr |
r_s, |
|
|
double |
p_s = 0.5 , |
|
|
unsigned int |
n_s = 1 |
|
) |
| |
librandom::GSL_BinomialRandomDev::GSL_BinomialRandomDev |
( |
double |
p_s = 0.5 , |
|
|
unsigned int |
n_s = 1 |
|
) |
| |
void librandom::GSL_BinomialRandomDev::get_status |
( |
DictionaryDatum & |
d | ) |
const |
|
virtual |
bool librandom::GSL_BinomialRandomDev::has_ldev |
( |
| ) |
const |
|
inlinevirtual |
long librandom::GSL_BinomialRandomDev::ldev |
( |
void |
| ) |
|
|
virtual |
long librandom::GSL_BinomialRandomDev::ldev |
( |
RngPtr |
rng | ) |
const |
|
virtual |
double librandom::GSL_BinomialRandomDev::operator() |
( |
RngPtr |
rthrd | ) |
const |
|
inlinevirtual |
void librandom::GSL_BinomialRandomDev::set_n |
( |
unsigned int |
n_s | ) |
|
void librandom::GSL_BinomialRandomDev::set_p |
( |
double |
p_s | ) |
|
void librandom::GSL_BinomialRandomDev::set_p_n |
( |
double |
p_s, |
|
|
unsigned |
int |
|
) |
| |
set parameters for p and n p - success probability for single trial n - number of trials
void librandom::GSL_BinomialRandomDev::set_status |
( |
const DictionaryDatum & |
d | ) |
|
|
virtual |
unsigned int librandom::GSL_BinomialRandomDev::n_ |
|
private |
parameter n in binomial distribution
double librandom::GSL_BinomialRandomDev::p_ |
|
private |
probability p of binomial distribution
gsl_rng* librandom::GSL_BinomialRandomDev::rng_ |
|
private |
The documentation for this class was generated from the following files: