curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | List of all members
curfil::Sampler Class Reference

A uniform distribution sampler. More...

#include <random_tree.h>

Public Member Functions

 Sampler (int seed, int lower, int upper)
 create a Sampler object using a seed and lower and upper bounds
 Sampler (const Sampler &other)
 create a Sampler object using another Sampler attributes
int getNext ()
int getSeed () const
int getLower () const
int getUpper () const

Detailed Description

A uniform distribution sampler.

Definition at line 981 of file random_tree.h.

Member Function Documentation

int curfil::Sampler::getLower ( ) const
inline
Returns
lower bound of the distribution

Definition at line 1014 of file random_tree.h.

int curfil::Sampler::getNext ( )
Returns
next random value
int curfil::Sampler::getSeed ( ) const
inline
Returns
seed for the random generator

Definition at line 1007 of file random_tree.h.

int curfil::Sampler::getUpper ( ) const
inline
Returns
upper bound of the distribution

Definition at line 1021 of file random_tree.h.


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