- Timestamp:
- 01/28/09 10:00:56 (15 years ago)
- Location:
- bdm
- Files:
-
- 27 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/estim/arx.cpp
r204 r254 1 1 #include "arx.h" 2 2 3 using namespace itpp; 3 namespace bdm{ 4 4 5 5 void ARX::bayes ( const vec &dt, const double w ) { … … 182 182 return ind; 183 183 } 184 185 } -
bdm/estim/arx.h
r200 r254 18 18 #include "../stat/libEF.h" 19 19 20 using namespace itpp; 20 namespace bdm{ 21 21 22 22 /*! … … 82 82 }; 83 83 84 } 84 85 85 86 #endif // AR_H -
bdm/estim/ekf_templ.h
r231 r254 16 16 #include "libKF.h" 17 17 18 using namespace itpp; 18 namespace bdm{ 19 19 20 20 //!Extended Kalman filter with unknown \c Q and \c R … … 51 51 }; 52 52 53 } 53 54 #endif //EKF_TEMP_H -
bdm/estim/libKF.cpp
r231 r254 2 2 #include "libKF.h" 3 3 4 using namespace itpp; 4 namespace bdm{ 5 5 6 6 using std::endl; … … 254 254 255 255 256 } -
bdm/estim/libKF.h
r223 r254 19 19 #include "../math/chmat.h" 20 20 21 using namespace itpp; 21 namespace bdm{ 22 22 23 23 /*! … … 401 401 402 402 403 } 403 404 #endif // KF_H 404 405 -
bdm/estim/libPF.cpp
r211 r254 1 1 #include "libPF.h" 2 2 3 using namespace itpp; 3 namespace bdm{ 4 4 5 5 using std::endl; … … 41 41 } 42 42 43 } 43 44 //MPF::MPF:{} -
bdm/estim/libPF.h
r234 r254 18 18 #include "../math/libDC.h" 19 19 20 using namespace itpp; 20 namespace bdm{ 21 21 22 22 /*! … … 197 197 } 198 198 199 } 199 200 #endif // KF_H 200 201 -
bdm/estim/merger.cpp
r213 r254 3 3 #include "arx.h" 4 4 5 namespace bdm{ 5 6 vec merger::lognorm_merge ( mat &lW ) { 6 7 int nu=lW.rows(); … … 196 197 } 197 198 199 } -
bdm/estim/merger.h
r229 r254 17 17 #include "mixef.h" 18 18 19 using namespace itpp; 19 namespace bdm{ 20 20 using std::string; 21 21 … … 140 140 }; 141 141 142 142 } 143 143 144 144 #endif // MER_H -
bdm/estim/mixef.cpp
r198 r254 2 2 #include <vector> 3 3 4 using namespace itpp; 4 namespace bdm{ 5 5 6 6 … … 152 152 weights.set_statistics(&(Mix2->weights)); 153 153 } 154 } -
bdm/estim/mixef.h
r200 r254 19 19 #include "../stat/emix.h" 20 20 21 using namespace itpp; 21 namespace bdm{ 22 22 23 23 enum MixEF_METHOD { EM = 0, QB = 1}; … … 116 116 }; 117 117 118 118 } 119 119 #endif // MEF_H 120 120 -
bdm/math/chmat.cpp
r168 r254 1 1 #include <itpp/itbase.h> 2 2 #include "chmat.h" 3 4 using namespace itpp;5 3 6 4 //using std::endl; -
bdm/math/chmat.h
r230 r254 17 17 #include "libDC.h" 18 18 #include "../itpp_ext.h" 19 20 using namespace itpp;21 19 22 20 /*! \brief Symmetric matrix stored in square root decomposition using upper cholesky … … 86 84 //!mapping of negative add operation to operators 87 85 inline chmat& chmat::operator -= ( const chmat &A2 ) {this->add ( A2,-1.0 );return *this;} 86 88 87 #endif // CHMAT_H -
bdm/stat/emix.cpp
r235 r254 1 1 #include "emix.h" 2 2 3 using namespace itpp; 3 namespace bdm{ 4 4 5 5 void emix::set_parameters ( const vec &w0, const Array<epdf*> &Coms0, bool copy ) { … … 47 47 }; 48 48 49 } 49 50 // mprod::mprod ( Array<mpdf*> mFacs, bool overlap) : mpdf ( RV(), RV() ), n ( mFacs.length() ), epdfs ( n ), mpdfs ( mFacs ), rvinds ( n ), rvcinrv ( n ), irvcs_rvc ( n ) { 50 51 // int i; -
bdm/stat/emix.h
r229 r254 18 18 //#include <std> 19 19 20 using namespace itpp; 20 namespace bdm{ 21 21 22 22 //this comes first because it is used inside emix! … … 309 309 }; 310 310 311 } 311 312 #endif //MX_H -
bdm/stat/libBM.cpp
r211 r254 3 3 #include "../itpp_ext.h" 4 4 5 using namespace itpp; 5 namespace bdm { 6 6 7 7 using std::cout; … … 239 239 for(int t=0;t<Data.cols();t++){bayes(Data.get_col(t));} 240 240 } 241 } -
bdm/stat/libBM.h
r250 r254 22 22 //#include <std> 23 23 24 namespace bdm{ 24 25 using namespace itpp; 26 27 //! Root class of BDM objects 28 class base{}; 25 29 26 30 //! Structure of RV (used internally), i.e. expanded RVs … … 43 47 */ 44 48 45 class RV {49 class RV :base{ 46 50 protected: 47 51 //! size = sum of sizes … … 135 139 //! Class representing function \f$f(x)\f$ of variable \f$x\f$ represented by \c rv 136 140 137 class fnc {141 class fnc :base{ 138 142 protected: 139 143 //! Length of the output vector … … 161 165 //! Probability density function with numerical statistics, e.g. posterior density. 162 166 163 class epdf {167 class epdf :base { 164 168 protected: 165 169 //! Identified of the random variable … … 469 473 */ 470 474 471 class BMcond {475 class BMcond :base{ 472 476 protected: 473 477 //! Identificator of the conditioning variable … … 484 488 }; 485 489 490 }; //namespace 486 491 /*! @} */ 487 492 #endif // BM_H -
bdm/stat/libDS.cpp
r19 r254 2 2 #include "libDS.h" 3 3 4 //using namespace itpp;4 using namespace bdm; 5 5 6 6 void MemDS::getdata(vec &dt){ -
bdm/stat/libDS.h
r85 r254 17 17 #include "libBM.h" 18 18 19 using namespace itpp; 20 19 namespace bdm{ 21 20 /*! 22 21 * \brief Class representing off-line data stored in memory … … 43 42 }; 44 43 45 44 }; //namespace 46 45 47 46 #endif // DS_H -
bdm/stat/libEF.cpp
r225 r254 4 4 #include <math.h> 5 5 6 using namespace itpp; 6 namespace bdm{ 7 7 8 8 Uniform_RNG UniRNG; … … 267 267 } 268 268 269 }; -
bdm/stat/libEF.h
r235 r254 20 20 //#include <std> 21 21 22 using namespace itpp; 22 namespace bdm{ 23 23 24 24 … … 830 830 }; 831 831 832 } 832 833 #endif //EF_H -
bdm/stat/libFN.cpp
r62 r254 3 3 4 4 using std::endl; 5 using namespace bdm; 5 6 6 7 bilinfn::bilinfn ( const RV &rvx0, const RV &rvu0, const mat &A0, const mat &B0 ) : diffbifn (A0.rows(), rvx0,rvu0 ) -
bdm/stat/libFN.h
r85 r254 16 16 #include "libBM.h" 17 17 18 using namespace itpp; 18 namespace bdm{ 19 19 20 20 //! class representing function \f$f(x) = a\f$, here \c rv is empty … … 121 121 }; 122 122 123 } //namespace 123 124 #endif // FN_H -
bdm/stat/loggers.cpp
r230 r254 8 8 #endif 9 9 10 namespace bdm{ 10 11 void memlog::itsave ( const char* fname ) { 11 12 it_file itf ( fname ); … … 135 136 write_buffers ( ind ); //assuming here that i+1 was not filled 136 137 } 138 139 } -
bdm/stat/loggers.h
r250 r254 18 18 #include "../itpp_ext.h" 19 19 20 using namespace itpp; 20 namespace bdm{ 21 21 using std::string; 22 22 … … 126 126 }; 127 127 128 128 } 129 129 #endif // LGR_H -
bdm/uibuilder.cpp
r248 r254 1 1 #include "uibuilder.h" 2 2 3 namespace bdm{ 4 3 5 UImap __uimap__; 4 6 … … 33 35 UIREGISTER(UIinternal); 34 36 35 37 } 36 38 //UIexternal* UIexternal_instance =new UIexternal(); -
bdm/uibuilder.h
r248 r254 1 #include "libconfig/libconfig.h++"2 #include <itpp/itbase.h>3 4 1 #ifndef UIBUILD 5 2 #define UIBUILD 6 3 4 #include "libconfig/libconfig.h++" 5 #include <itpp/itbase.h> 6 #include "stat/libBM.h" 7 8 namespace bdm{ 9 7 10 using namespace libconfig; 8 using namespace itpp;9 11 using namespace std; 10 12 … … 92 94 //! Prototype of a UI builder. Return value is by the second argument since it allows some type of type checking. 93 95 template<class T> 94 void UIbuild(Setting &S, T** ret){96 void UIbuild(Setting &S, T** ret){ 95 97 CHECK_UITYPE(S,TypeGroup); 96 98 T* tmp; … … 113 115 }; 114 116 115 116 Setting& UILoad(const char* fname); 117 117 } 118 118 #endif UIBUILD