|
STK++ 1.0
|
#include <STK_Law_ILawReal.h>

Public Member Functions | |
| virtual | ~ILawReal () |
| virtual Real | rand () const =0 |
| virtual Real | icdf (Real const &p) const =0 |
| inverse cumulative distribution function Compute the Real quantile t such that the probability of a random variate less to t is less or equal to p. | |
| template<class TContainer1D > | |
| void | rand1D (ITContainer1D< Real, TContainer1D > &A) const |
| template<class TContainerHo , class TContainerVe , class TContainer2D > | |
| void | rand (ITContainer2D< Real, TContainerHo, TContainerVe, TContainer2D > &A) const |
Protected Member Functions | |
| ILawReal (String const &name=Arithmetic< String >::NA()) | |
Interface base class for the Real probabilities laws. Every derived class have to furnish :
The derived objects should also furnish the same static functions. Instantiation of a derived object is interesting when one want to simulate independent identical distributed random variates : the creation of the object initialize all parameter-dependent variables.
Definition at line 59 of file STK_Law_ILawReal.h.
| STK::Law::ILawReal::ILawReal | ( | String const & | name = Arithmetic<String>::NA() | ) | [inline, protected] |
constructor
| name | name of the law |
Definition at line 66 of file STK_Law_ILawReal.h.
: IUnivariate(name) { ;}
| virtual STK::Law::ILawReal::~ILawReal | ( | ) | [inline, virtual] |
| virtual Real STK::Law::ILawReal::rand | ( | ) | const [pure virtual] |
Generate a Real random variate.
Implemented in STK::Law::Cauchy, and STK::Law::Normal.
Referenced by rand(), rand1D(), and STK::LinearAAModel::simul().
inverse cumulative distribution function Compute the Real quantile t such that the probability of a random variate less to t is less or equal to p.
| p | value of the probability |
Implemented in STK::Law::Cauchy, and STK::Law::Normal.
| void STK::Law::ILawReal::rand1D | ( | ITContainer1D< Real, TContainer1D > & | A | ) | const [inline] |
Pseudo-random Real law generator for a one dimensional container of Real.
| A | the container to store the random numbers |
Definition at line 93 of file STK_Law_ILawReal.h.
References STK::IContainer1D::first(), STK::IContainer1D::last(), and rand().
| void STK::Law::ILawReal::rand | ( | ITContainer2D< Real, TContainerHo, TContainerVe, TContainer2D > & | A | ) | const [inline] |
Pseudo-random Real law generator for a two dimensional container of Real.
| A | the container to store the random numbers |
Definition at line 106 of file STK_Law_ILawReal.h.
References STK::IContainer2D::firstCol(), STK::IContainer2D::firstRow(), STK::IContainer2D::lastCol(), STK::IContainer2D::lastRow(), and rand().