Changeset 1068 for library/bdm/stat/emix.h
- Timestamp:
- 06/09/10 18:35:14 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/emix.h
r1066 r1068 24 24 25 25 /*! \brief Class representing ratio of two densities 26 26 27 which arise e.g. by applying the Bayes rule. 27 28 It represents density in the form: … … 266 267 } 267 268 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 273 275 //! \endcode 274 276 //!@} 275 277 void from_setting ( const Setting &set ) ; 276 void to_setting (Setting &set) const; 277 278 278 void to_setting (Setting &set) const; 279 279 }; 280 280 UIREGISTER ( mprod ); … … 370 370 UIREGISTER(eprod); 371 371 372 //! \brief Internal class similar to eprod - factors are external pointers. To be used onlyinternally!372 //! \brief Internal class similar to eprod - factors are external pointers. To be used internally! 373 373 class eprod_internal: public eprod_base { 374 374 protected: … … 409 409 vec samplecond ( const vec &cond ); 410 410 411 //! Load from structure with elements:412 //! \code413 //! { class='mmix';414 //! pdfs = (..., ...); // list of pdfs in the mixture415 //! weights = ( 0.5, 0.5 ); // weights of pdfs in the mixture416 411 //! } 417 412 //! \endcode 418 413 //!@} 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 */ 419 430 void from_setting ( const Setting &set ); 420 431 void to_setting (Setting &set) const; … … 430 441 Array<vec_from_vec> bm_yt; 431 442 Array<vec_from_2vec> bm_cond; 443 444 //! \brief Internal class 432 445 class eprod_bm : public eprod_base { 433 446 ProdBMBase & pb;