julian::RandomVariable Class Referenceabstract

Class implements the interface for Random Variables. More...

#include <randomVariable.hpp>

Inheritance diagram for julian::RandomVariable:
julian::CustomRandomVariable julian::GaussianRandomVariable

Public Member Functions

virtual double getRandom ()=0
 Generates pseudo-random variable. More...
 
virtual std::vector< double > getRandoms (int)=0
 Generates set of pseudo-random variables. More...
 
virtual void setSeed (unsigned int)=0
 Set seeds of pseudo-random generator. More...
 
virtual ~RandomVariable ()
 Destructor. More...
 
virtual RandomVariableclone () const
 Virtual copy constructor. More...
 

Detailed Description

Class implements the interface for Random Variables.

This class interface implements the concept of random variable. Random variable is a variable whose possible values are outcomes of a random phenomenon. It is used to generate the pseudo-random variable from specified distribution.

Constructor & Destructor Documentation

virtual julian::RandomVariable::~RandomVariable ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual RandomVariable* julian::RandomVariable::clone ( ) const
virtual

Virtual copy constructor.

Reimplemented in julian::CustomRandomVariable, and julian::GaussianRandomVariable.

virtual double julian::RandomVariable::getRandom ( )
pure virtual

Generates pseudo-random variable.

Implemented in julian::CustomRandomVariable, and julian::GaussianRandomVariable.

virtual std::vector<double> julian::RandomVariable::getRandoms ( int  )
pure virtual

Generates set of pseudo-random variables.

Implemented in julian::CustomRandomVariable, and julian::GaussianRandomVariable.

virtual void julian::RandomVariable::setSeed ( unsigned  int)
pure virtual

Set seeds of pseudo-random generator.

Implemented in julian::CustomRandomVariable, and julian::GaussianRandomVariable.


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