Changeset 536 for library/bdm/estim

Show
Ignore:
Timestamp:
08/16/09 18:13:31 (15 years ago)
Author:
smidl
Message:

removal of unused functions _e() and samplecond(,) and added documentation lines

Location:
library/bdm/estim
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/arx.h

    r529 r536  
    110110        //!\name Access attributes 
    111111        //!@{ 
    112         const egiw* _e() const { 
    113                 return &est ; 
    114         }; 
    115112        const egiw& posterior() const { 
    116113                return est; 
  • library/bdm/estim/kalman.h

    r529 r536  
    125125                return est; 
    126126        } 
    127         const enorm<sq_T>* _e() const { 
    128                 return &est; 
    129         } 
    130127        //!access function 
    131128        mat& __K() { 
     
    214211                return E; 
    215212        }; 
    216         const enorm<fsqmat>* _e() const { 
    217                 return &E; 
    218         }; 
    219213        const mat _R() { 
    220214                return P; 
     
    277271        // TODO dodelat void to_setting( Setting &set ) const; 
    278272 
     273        const enorm<chmat>& posterior() {return est;} 
    279274}; 
    280275 
     
    423418 
    424419                est.set_rv ( RV ( "MM", A ( 0 )->posterior().dimension(), 0 ) ); 
    425                 est.set_parameters ( A ( 0 )->_e()->mean(), A ( 0 )->_e()->_R() ); 
     420                est.set_parameters ( A ( 0 )->posterior().mean(), A ( 0 )->posterior()._R() ); 
    426421        } 
    427422        void bayes ( const vec &dt ) { 
     
    439434                case 1: { 
    440435                        int mi = max_index ( w ); 
    441                         const enorm<chmat>* st = ( Models ( mi )->_e() ); 
    442                         est.set_parameters ( st->mean(), st->_R() ); 
     436                        const enorm<chmat> &st = Models ( mi )->posterior() ; 
     437                        est.set_parameters ( st.mean(), st._R() ); 
    443438                } 
    444439                break; 
     
    451446                } 
    452447        } 
    453         //all posterior densities are equal => return the first one 
    454         const enorm<chmat>* _e() const { 
    455                 return &est; 
    456         } 
    457         //all posterior densities are equal => return the first one 
     448        //! posterior density 
    458449        const enorm<chmat>& posterior() const { 
    459450                return est; 
  • library/bdm/estim/mixtures.h

    r477 r536  
    2121namespace bdm { 
    2222 
     23//! enum switch for internal approximation used in MixEF 
    2324enum MixEF_METHOD { EM = 0, QB = 1}; 
    2425 
     
    118119                return *est; 
    119120        } 
    120         const eprod* _e() const { 
    121                 return est; 
    122         } 
    123121        emix* epredictor() const; 
    124122        //! Flatten the density as if it was not estimated from the data 
  • library/bdm/estim/particles.h

    r488 r536  
    111111                        dim = E.dimension() + A ( 0 )->posterior().dimension(); 
    112112                        for ( int i = 0; i < _w.length() ; i++ ) { 
    113                                 Coms ( i ) = A ( i )->_e(); 
     113                                Coms ( i ) = &(A ( i )->posterior()); 
    114114                        } 
    115115                } 
     
    218218                return jest; 
    219219        } 
    220         const epdf* _e() const { 
    221                 return &jest;    //Fixme: is it useful? 
    222         } 
    223220        //! Set postrior of \c rvc to samples from epdf0. Statistics of BMs are not re-computed! Use only for initialization! 
    224221        /*      void set_est ( const epdf& epdf0 ) { 
     
    234231 
    235232        //!Access function 
    236         BM* _BM ( int i ) { 
     233        const BM* _BM ( int i ) { 
    237234                return BMs ( i ); 
    238235        }