yat  0.21pre
Public Types | Public Member Functions | Protected Attributes | List of all members
theplu::yat::random::Continuous Class Referenceabstract

Continuous random number distributions. More...

#include <yat/random/random.h>

Inheritance diagram for theplu::yat::random::Continuous:
theplu::yat::random::ContinuousGeneral theplu::yat::random::ContinuousUniform theplu::yat::random::Exponential theplu::yat::random::Gaussian

Public Types

typedef double result_type
 

Public Member Functions

 Continuous (void)
 Constructor.
 
virtual ~Continuous (void)
 The destructor.
 
void seed (unsigned long s) const
 Set the seed to s. More...
 
unsigned long seed_from_devurandom (void)
 Set the seed using the /dev/urandom device. More...
 
virtual result_type operator() (void) const =0
 

Protected Attributes

RNGrng_
 pointer to GSL random generator
 

Detailed Description

Continuous random number distributions.

Abstract base class for continuous random number distributions.

Member Typedef Documentation

◆ result_type

type returned by operator()

Since
New in yat 0.10

Member Function Documentation

◆ operator()()

virtual result_type theplu::yat::random::Continuous::operator() ( void  ) const
pure virtual

◆ seed()

void theplu::yat::random::Continuous::seed ( unsigned long  s) const

Set the seed to s.

Set the seed to s in the underlying rng. If s is zero, a default value from the rng's original implementation is used (cf. GSL documentation).

Deprecated:
Provided for backward compatibility with the 0.7 API. Use RNG::instance()->seed(s) instead.

◆ seed_from_devurandom()

unsigned long theplu::yat::random::Continuous::seed_from_devurandom ( void  )

Set the seed using the /dev/urandom device.

Returns
The seed acquired from /dev/urandom.
Deprecated:
Provided for backward compatibility with the 0.7 API. Use RNG::instance()->seed_from_devurandom() instead.

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

Generated on Wed Jan 25 2023 03:34:29 for yat by  doxygen 1.8.14