mixpp: bdm::MergerBase Class Reference

bdm::MergerBase Class Reference

Abstract common class for mergers. More...

#include <merger.h>

Inheritance diagram for bdm::MergerBase:

bdm::root bdm::ENormMerger< sq_T > bdm::MergerDiscrete bdm::merger_mix List of all members.

Public Member Functions

virtual void merge () NOT_IMPLEMENTED_VOID
 merge
virtual void set_sources (const Array< shared_ptr< pdf > > &A)
virtual const epdfmerger ()=0
 return the result of merging

Public Attributes

vec w
 weights of the sources -- no restrictions
Array< shared_ptr< epdf > > sources
 source pdfs -- conditioning allowed

Detailed Description

Abstract common class for mergers.

Merging is defined as a combination of information from source pdfs into a single pdf called the merger.

\[ f_{merged}(x) \leftarrow {f_1(x),f_2(x),f_3(x)} \]

In the basic form, the random variables of all source pdfs must be identical, e.g. $ x $ from the example above.

Extension of the merger to a more demanding scenarios with fragmental sources is available in offspring bdm::merger_mix.

This abstract class defines only the interface to using merger: operation merge(), and operation merger() which returns the result.


Member Function Documentation

virtual void bdm::MergerBase::set_sources ( const Array< shared_ptr< pdf > > &  A  )  [inline, virtual]

check if all epdfs are on the same support

Reimplemented in bdm::MergerDiscrete, and bdm::merger_mix.


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