Marmote Core
The project aims at realizing the prototype of a software environment dedicated to modeling with Markov chains.
|
Abstraction for algorithms that produce samples of some unspecified distribution. More...
#include <algorithmicSampler.h>
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... | |
Abstraction for algorithms that produce samples of some unspecified distribution.
|
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().
n | the number of values to sample |
sample | an array to be filled with the sample |
Implemented in psiSampler.
|
pure virtual |
drawing a (pseudo)random value according to the distribution.
Implemented in psiSampler.