mixpp: bdm::emix Class Reference

bdm::emix Class Reference

Mixture of epdfs. More...

#include <emix.h>

Inheritance diagram for bdm::emix:

bdm::emix_base bdm::epdf bdm::pdf bdm::root List of all members.

Public Member Functions

 emix ()
 Default constructor.
const epdfcomponent (const int &i) const
void validate ()
int no_coms () const
void from_setting (const Setting &set)
void to_setting (Setting &set) const
void set_rv (const RV &rv)
Array< shared_ptr< epdf > > & _Coms ()

Protected Attributes

vec weights
 weights of the components
Array< shared_ptr< epdf > > Coms
 Component (epdfs).

Detailed Description

Mixture of epdfs.

Density function:

\[ f(x) = \sum_{i=1}^{n} w_{i} f_i(x), \quad \sum_{i=1}^n w_i = 1. \]

where $f_i(x)$ is any density on random variable $x$, called component,


Member Function Documentation

void bdm::emix::from_setting ( const Setting &  set  )  [virtual]

Create object from the following structure

    class = 'emix';
    pdfs = { list of any bdm::pdf offsprings };   % pdfs in the mixture, bdm::pdf::from_setting
    weights = [... ];                             % vector of weights of pdfs in the mixture
    --- inherited fields ---
    bdm::emix_base::from_setting

Reimplemented from bdm::epdf.


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