mixpp: bdm::mmix Class Reference

bdm::mmix Class Reference

Mixture of pdfs with constant weights, all pdfs are of equal RV and RVC. More...

#include <emix.h>

Inheritance diagram for bdm::mmix:

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

Public Member Functions

 mmix ()
 Default constructor.
double evallogcond (const vec &dt, const vec &cond)
vec samplecond (const vec &cond)
void from_setting (const Setting &set)
void to_setting (Setting &set) const
virtual void validate ()

Protected Attributes

Array< shared_ptr< pdf > > Coms
 Component (pdfs).
vec w
 weights of the components

Detailed Description

Mixture of pdfs with constant weights, all pdfs are of equal RV and RVC.


Member Function Documentation

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

Create object from the following structure

    class = 'mmix';
    pdfs = { list of components bdm::pdf };          % list of pdf offsprings, bdm::pdf::from_setting
    --- optional fields ---
    weights = [...];                                 % weights of pdfs in the mixture
    --- inherited fields ---
    bdm::pdf::from_setting
If the optional fields are not given, they will be filled as follows:
    weights = 1/n * [1,1,1,...];

Reimplemented from bdm::pdf.


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