Changeset 265 for bdm/stat/libBM.h

Show
Ignore:
Timestamp:
02/09/09 23:14:58 (15 years ago)
Author:
smidl
Message:

UI in matlab

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • bdm/stat/libBM.h

    r263 r265  
    7878                RV (); 
    7979                //! 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); 
    8181 
    8282                //! Printing output e.g. for debugging. 
     
    490490                        L.logit ( L_ut,tmp.mid ( Drv.count(), Urv.count() ) ); 
    491491                } 
    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. 
    495499 
    496500        */ 
     
    500504                //!Random variable of the posterior 
    501505                RV rv; 
     506                //! Random variable of the data (optional) 
     507                RV drv; 
    502508                //!Logarithm of marginalized data likelihood. 
    503509                double ll; 
     
    537543                //!access function 
    538544                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;} 
    539549                //!access function 
    540550                double _ll() const {return ll;}