Changeset 265 for bdm/stat/libBM.h
- Timestamp:
- 02/09/09 23:14:58 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/stat/libBM.h
r263 r265 78 78 RV (); 79 79 //! Constructor of a single RV with given id 80 RV (string name, int id );80 RV (string name, int id, int sz=1, int tm=0); 81 81 82 82 //! Printing output e.g. for debugging. … … 490 490 L.logit ( L_ut,tmp.mid ( Drv.count(), Urv.count() ) ); 491 491 } 492 }; 493 494 /*! \brief Bayesian Model of the world, i.e. all uncertainty is modeled by probabilities. 492 //!access function 493 virtual RV _drv() const {return concat(Drv,Urv);} 494 //!access function 495 const RV& _urv() const {return Urv;} 496 }; 497 498 /*! \brief Bayesian Model of a system, i.e. all uncertainty is modeled by probabilities. 495 499 496 500 */ … … 500 504 //!Random variable of the posterior 501 505 RV rv; 506 //! Random variable of the data (optional) 507 RV drv; 502 508 //!Logarithm of marginalized data likelihood. 503 509 double ll; … … 537 543 //!access function 538 544 const RV& _rv() const {return rv;} 545 //!access function 546 const RV& _drv() const {return drv;} 547 //!set drv 548 void set_drv(const RV &rv){drv=rv;} 539 549 //!access function 540 550 double _ll() const {return ll;}