Changeset 1095 for library

Show
Ignore:
Timestamp:
06/13/10 22:07:47 (14 years ago)
Author:
smidl
Message:

dco

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/stat/merger.h

    r1086 r1095  
    2626/*!  \brief Abstract common class for mergers 
    2727 
    28 It defines only common interface of access to sources and operation merge(); The result of merging is available via function merger() 
     28Merging is defined as a combination of information from \c source pdfs into a single pdf called the \c merger. 
     29 
     30\f[ 
     31f_{merged}(x) \leftarrow {f_1(x),f_2(x),f_3(x)} 
     32\f] 
     33 
     34In the basic form, the random variables of all source pdfs must be identical, e.g. \f$ x \f$ from the example above. 
     35 
     36Extension of the merger to a more demanding scenarios with fragmental sources is available in offspring bdm::merger_mix. 
     37 
     38This abstract class defines only the interface to using merger: operation merge(), and operation merger() which returns the result. 
    2939*/ 
    3040class MergerBase: public root{ 
     
    5262                                const epdf *si=dynamic_cast<const epdf*>(A(i).get()); 
    5363                                if (si){ 
    54                                         sources(i) = dynamic_cast<epdf*>(A(i)->_copy()); 
     64                                        sources(i) = shared_prt<epdf*>(si); 
    5565                                } 
    5666                                bdm_assert(sources(i)->dimension()==dim0, "Merger: Incompatible dimensions of sources");