Changeset 200 for bdm/estim

Show
Ignore:
Timestamp:
11/10/08 15:40:24 (16 years ago)
Author:
smidl
Message:

BM has now function _e() returning posterior of correct type

Location:
bdm/estim
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • bdm/estim/arx.h

    r198 r200  
    7979        //! Brute force structure estimation.\return indeces of accepted regressors. 
    8080        ivec structure_est ( egiw Eg0 ); 
     81        const egiw* _e() const {return &est ;}; 
    8182}; 
    8283 
  • bdm/estim/libKF.h

    r170 r200  
    122122        //!access function 
    123123        const epdf& _epdf() const {return est;} 
     124        const enorm<sq_T>* _e() const {return &est;} 
    124125        //!access function 
    125126        mat& __K() {return _K;} 
     
    187188        //!dummy! 
    188189        const epdf& _epdf()const{return E;}; 
     190        const enorm<fsqmat>* _e()const{return &E;}; 
    189191}; 
    190192 
  • bdm/estim/libPF.h

    r170 r200  
    122122        void bayes ( const vec &dt ); 
    123123        const epdf& _epdf() const {return jest;} 
     124        const epdf* _e() const {return &jest;} //Fixme: is it useful? 
    124125        //! Set postrior of \c rvc to samples from epdf0. Statistics of Bms are not re-computed! Use only for initialization! 
    125126        void set_est ( const epdf& epdf0 ) { 
  • bdm/estim/mixef.h

    r198 r200  
    105105        double logpred ( const vec &dt ) const; 
    106106        const epdf& _epdf() const {return *est;} 
     107        const eprod* _e() const {return est;} 
    107108        emix* predictor(const RV &rv) const; 
    108109        //! Flatten the density as if it was not estimated from the data