Show
Ignore:
Timestamp:
06/09/10 18:35:14 (14 years ago)
Author:
mido
Message:

patch of documentation - all conditional pdfs revised

Files:
1 modified

Legend:

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

    r1066 r1068  
    2424 
    2525/*! \brief Class representing ratio of two densities 
     26 
    2627which arise e.g. by applying the Bayes rule. 
    2728It represents density in the form: 
     
    266267    } 
    267268 
    268     //! Load from structure with elements: 
    269     //!  \code 
    270     //! { class='mprod'; 
    271     //!   pdfs = (..., ...);     // list of pdfs in the order of chain rule 
    272     //! } 
     269    //! Create object from the following structure 
     270    //! \code 
     271    //! class='mprod'; 
     272    //! pdfs = { list of bdm::pdf };          % list of bdm::pdf offsprings stored in the order of chain rule, bdm::pdf::from_setting 
     273    //! --- inherited fields --- 
     274    //! bdm::pdf::from_setting 
    273275    //! \endcode 
    274276    //!@} 
    275277    void from_setting ( const Setting &set ) ; 
    276     void     to_setting  (Setting  &set) const; 
    277  
    278  
     278    void to_setting  (Setting  &set) const;     
    279279}; 
    280280UIREGISTER ( mprod ); 
     
    370370UIREGISTER(eprod); 
    371371 
    372 //! \brief Internal class similar to eprod - factors are external pointers. To be used only internally!   
     372//! \brief Internal class similar to eprod - factors are external pointers. To be used internally!   
    373373class eprod_internal: public eprod_base { 
    374374protected: 
     
    409409    vec samplecond ( const vec &cond ); 
    410410 
    411     //! Load from structure with elements: 
    412     //!  \code 
    413     //! { class='mmix'; 
    414     //!   pdfs = (..., ...);     // list of pdfs in the mixture 
    415     //!   weights = ( 0.5, 0.5 ); // weights of pdfs in the mixture 
    416411    //! } 
    417412    //! \endcode 
    418413    //!@} 
     414    
     415    /*! Create object from the following structure 
     416    \code 
     417    class = 'mmix'; 
     418    pdfs = { list of components bdm::pdf };          % list of pdf offsprings, bdm::pdf::from_setting 
     419    --- optional fields --- 
     420    weights = [...];                                 % weights of pdfs in the mixture 
     421    --- inherited fields --- 
     422    bdm::pdf::from_setting 
     423    \endcode 
     424    \endcode 
     425    If the optional fields are not given, they will be filled as follows: 
     426    \code 
     427    weights = 1/n * [1,1,1,...]; 
     428    \endcode 
     429    */ 
    419430    void from_setting ( const Setting &set ); 
    420431    void     to_setting  (Setting  &set) const; 
     
    430441    Array<vec_from_vec> bm_yt; 
    431442    Array<vec_from_2vec> bm_cond; 
     443 
     444    //! \brief Internal class 
    432445    class eprod_bm : public eprod_base { 
    433446        ProdBMBase & pb;