bdm::EpdfDS Class Reference
Simulate data from a static pdf (epdf). More...
#include <datasources.h>
Inheritance diagram for bdm::EpdfDS:

Public Member Functions | |
| void | step () |
| void | getdata (vec &dt_out) const |
| void | getdata (vec &dt_out, const ivec &ids) |
| const RV & | _drv () const |
| virtual void | write (const vec &ut) NOT_IMPLEMENTED_VOID |
| Accepts action variable and schedule it for application. | |
| virtual void | write (const vec &ut, const ivec &indices) NOT_IMPLEMENTED_VOID |
| Accepts action variables at specific indices. | |
| void | from_setting (const Setting &set) |
| void | validate () |
Protected Attributes | |
| shared_ptr< epdf > | iepdf |
| internal pointer to epdf from which we samplecond | |
| vec | dt |
| internal storage of data sample | |
Detailed Description
Simulate data from a static pdf (epdf).Trivial example of a data source, could be used for tests of some estimation algorithms. For example, simulating data from a mixture model and feeding them to mixture model estimators.
Member Function Documentation
| void bdm::EpdfDS::from_setting | ( | const Setting & | set | ) | [inline, virtual] |
Create object from the following structure
class = 'EpdfDS'; epdf = configuration of bdm::epdf % unconditional density to sample from, bdm::epdf::from_setting
Reimplemented from bdm::DS.
The documentation for this class was generated from the following file:
Generated on 2 Dec 2013 for mixpp by
1.4.7
