In file mydocsrc/iml_rand.h:

class scalar_rv

This is the base class for scalar random variable objects

Inheritance:

scalar_rv


Public Methods

virtual void reset (float, float)
This function must be over-ridden by a derived class
virtual double sample (void)
The function must be over-ridden in derived classes
scalar_rv (void)
This is the (default) constructor.
virtual void seed (long Seed)
This function is used to set the random variable seed.

Documentation

This is the base class for scalar random variable objects. It provides virtual functions which define an interface for talking to random variables.
virtual double sample(void)
The function must be over-ridden in derived classes. Draw a sample from the the distribution.

virtual void reset(float, float)
This function must be over-ridden by a derived class. This function should be used to configure the distribution's mean and standard deviation. Higher moment configuration might be needed for some distributions but that is not handled by the current class design.


Direct child classes:
uniform_rv

alphabetic index hierarchy of classes


generated by doc++