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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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;