mixpp: bdm::EpdfDS Class Reference

bdm::EpdfDS Class Reference

Simulate data from a static pdf (epdf). More...

#include <datasources.h>

Inheritance diagram for bdm::EpdfDS:

bdm::DS bdm::root List of all members.

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< epdfiepdf
 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
Does not inherit from bdm::DS::from_setting, names of data are taken from epdf.rv.

Reimplemented from bdm::DS.


The documentation for this class was generated from the following file:
Generated on 2 Dec 2013 for mixpp by  doxygen 1.4.7