Marmote Core
The project aims at realizing the prototype of a software environment dedicated to modeling with Markov chains.
Public Member Functions | List of all members
algorithmicSampler Class Referenceabstract

Abstraction for algorithms that produce samples of some unspecified distribution. More...

#include <algorithmicSampler.h>

Inheritance diagram for algorithmicSampler:
psiSampler

Public Member Functions

virtual double sample ()=0
 drawing a (pseudo)random value according to the distribution. More...
 
virtual void iidSample (int n, double *sample)=0
 drawing an i.i.d. sample from the distribution. The result is returned in an array (that must have been already allocated) passed as a parameter. The Distribution class offers the default implementation with repeated call to sample(). More...
 

Detailed Description

Abstraction for algorithms that produce samples of some unspecified distribution.

Member Function Documentation

virtual void algorithmicSampler::iidSample ( int  n,
double *  sample 
)
pure virtual

drawing an i.i.d. sample from the distribution. The result is returned in an array (that must have been already allocated) passed as a parameter. The Distribution class offers the default implementation with repeated call to sample().

Parameters
nthe number of values to sample
samplean array to be filled with the sample

Implemented in psiSampler.

virtual double algorithmicSampler::sample ( )
pure virtual

drawing a (pseudo)random value according to the distribution.

Returns
a sample

Implemented in psiSampler.


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