Changeset 98

Show
Ignore:
Timestamp:
05/09/08 17:27:07 (16 years ago)
Author:
smidl
Message:

details...

Location:
bdm
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • bdm/CMakeLists.txt

    r93 r98  
    33SET(BdmMath math/libDC.cpp math/chmat.cpp) 
    44SET(BdmStat stat/libDS.cpp stat/libFN.cpp stat/libBM stat/libEF stat/loggers) 
    5 SET(BdmEstim estim/libKF.cpp estim/libPF.cpp) 
     5SET(BdmEstim estim/libKF.cpp estim/libPF.cpp estim/arx.cpp) 
    66 
    77 
  • bdm/estim/libPF.h

    r67 r98  
    5757\brief Marginalized Particle filter 
    5858 
    59 Trivial version: proposal $=$ parameter evolution, observation model is not used. (it is assumed to be part of BM). 
     59Trivial version: proposal = parameter evolution, observation model is not used. (it is assumed to be part of BM). 
    6060*/ 
    6161 
  • bdm/itpp_ext.cpp

    r86 r98  
    1111// 
    1212 
    13 #include <itpp/itbase.h> 
    1413#include "itpp_ext.h" 
    1514 
  • bdm/math/chmat.h

    r95 r98  
    4242        double invqform ( const vec &v ) const; 
    4343        void clear(); 
     44        //! add another chmat \c A2 with weight \c w. 
    4445        void add ( const chmat &A2, double w=1.0 ) {}; 
    4546        //!Inversion in the same form, i.e. cholesky 
  • bdm/math/libDC.cpp

    r75 r98  
    213213        int mn = (m<n) ? m :n ; 
    214214 
    215         it_assert_debug( A.cols()==dim,"ldmat::ldform A is not compatible" ); 
     215//      it_assert_debug( A.cols()==dim,"ldmat::ldform A is not compatible" ); 
    216216        it_assert_debug( D0.length()==A.rows(),"ldmat::ldform Vector D must have the length as row count of A" ); 
    217217 
     
    299299        L.del_rows(0,m-1); 
    300300        D.del(0,m-1); 
     301         
     302        dim = L.rows(); 
    301303} 
    302304 
  • bdm/math/libDC.h

    r85 r98  
    245245                void setL (const vec &nL){L=nL;} 
    246246 
     247                //! Access functions 
     248                const vec& _D() const {return D;} 
     249                //! Access functions 
     250                const mat& _L() const {return L;} 
     251 
    247252                //! add another ldmat matrix 
    248253                ldmat& operator += ( const ldmat &ldA ); 
     
    254259                //! print both \c L and \c D 
    255260                friend std::ostream &operator<< ( std::ostream &os, const ldmat &sq ); 
    256  
    257261 
    258262        protected: 
  • bdm/userinfo.h

    r90 r98  
    4949        //! for future use 
    5050        virtual ~uibase() {}; 
    51  
     51        //! Save to file 
    5252        virtual void save ( std::ostream &os ) { 
    5353                os.width(ilevel); 
     
    5858                os<<name<<" = "; 
    5959        }; 
     60        //! load from file 
    6061        virtual void load ( std::istream &is ) { 
    6162                char tmp[200]; 
     
    7475class uiscalar : public uibase { 
    7576protected: 
     77        //! Value 
    7678        T N; 
    7779public: 
     
    9597class uistring : public uibase { 
    9698protected: 
     99        //! Values 
    97100        std::string S; 
    98101public: 
     
    116119class uivector : public uibase { 
    117120protected: 
     121        //! Value 
    118122        itpp::Vec<T> V; 
    119123public: 
     
    137141class uimatrix : public uibase { 
    138142protected: 
     143        //! Value 
    139144        itpp::Mat<T> M; 
    140145