yat  0.11.3pre
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
theplu::yat::random::Binomial Class Reference

Binomial distribution. More...

#include <yat/random/random.h>

Inheritance diagram for theplu::yat::random::Binomial:
theplu::yat::random::Discrete

Public Member Functions

 Binomial (double p, unsigned int n)
 Constructor.
 
unsigned long operator() (void) const
 

Private Types

typedef unsigned long int result_type
 

Private Member Functions

void seed (unsigned long s) const
 Set the seed to s.
 
unsigned long seed_from_devurandom (void)
 Set the seed using the /dev/urandom device.
 

Private Attributes

RNGrng_
 GSL random gererator.
 

Detailed Description

Binomial distribution.

See Also
gsl_ran_binomial
Since
New in yat 0.10

Constructor & Destructor Documentation

theplu::yat::random::Binomial::Binomial ( double  p,
unsigned int  n 
)

Constructor.

Create an object that generates random numbers from binomial distribution, the number of successes in
trials each with success probability p.

Member Function Documentation

unsigned long theplu::yat::random::Binomial::operator() ( void  ) const
virtual
Returns
number from binomial distrubtion as parametrized in constructor.

Implements theplu::yat::random::Discrete.


The documentation for this class was generated from the following file:

Generated on Sat May 24 2014 03:33:05 for yat by  doxygen 1.8.2