Changeset 254

Show
Ignore:
Timestamp:
01/28/09 10:00:56 (15 years ago)
Author:
smidl
Message:

create namespace bdm

Files:
70 modified

Legend:

Unmodified
Added
Removed
  • bdm/estim/arx.cpp

    r204 r254  
    11#include "arx.h" 
    22 
    3 using namespace itpp; 
     3namespace bdm{ 
    44 
    55void ARX::bayes ( const vec &dt, const double w ) { 
     
    182182        return ind; 
    183183} 
     184 
     185} 
  • bdm/estim/arx.h

    r200 r254  
    1818#include "../stat/libEF.h" 
    1919 
    20 using namespace itpp; 
     20namespace bdm{ 
    2121 
    2222/*! 
     
    8282}; 
    8383 
     84} 
    8485 
    8586#endif // AR_H 
  • bdm/estim/ekf_templ.h

    r231 r254  
    1616#include "libKF.h" 
    1717 
    18 using namespace itpp; 
     18namespace bdm{ 
    1919 
    2020//!Extended Kalman filter with unknown \c Q and \c R 
     
    5151}; 
    5252 
     53} 
    5354#endif //EKF_TEMP_H 
  • bdm/estim/libKF.cpp

    r231 r254  
    22#include "libKF.h" 
    33 
    4 using namespace itpp; 
     4namespace bdm{ 
    55 
    66using std::endl; 
     
    254254 
    255255 
     256} 
  • bdm/estim/libKF.h

    r223 r254  
    1919#include "../math/chmat.h" 
    2020 
    21 using namespace itpp; 
     21namespace bdm{ 
    2222 
    2323/*! 
     
    401401 
    402402 
     403} 
    403404#endif // KF_H 
    404405 
  • bdm/estim/libPF.cpp

    r211 r254  
    11#include "libPF.h" 
    22 
    3 using namespace itpp; 
     3namespace bdm{ 
    44 
    55using std::endl; 
     
    4141} 
    4242 
     43} 
    4344//MPF::MPF:{} 
  • bdm/estim/libPF.h

    r234 r254  
    1818#include "../math/libDC.h" 
    1919 
    20 using namespace itpp; 
     20namespace bdm{ 
    2121 
    2222/*! 
     
    197197} 
    198198 
     199} 
    199200#endif // KF_H 
    200201 
  • bdm/estim/merger.cpp

    r213 r254  
    33#include "arx.h" 
    44 
     5namespace bdm{ 
    56vec merger::lognorm_merge ( mat &lW ) { 
    67        int nu=lW.rows(); 
     
    196197} 
    197198 
     199} 
  • bdm/estim/merger.h

    r229 r254  
    1717#include "mixef.h" 
    1818 
    19 using namespace itpp; 
     19namespace bdm{ 
    2020using std::string; 
    2121 
     
    140140}; 
    141141 
    142  
     142} 
    143143 
    144144#endif // MER_H 
  • bdm/estim/mixef.cpp

    r198 r254  
    22#include <vector> 
    33 
    4 using namespace itpp; 
     4namespace bdm{ 
    55 
    66 
     
    152152        weights.set_statistics(&(Mix2->weights)); 
    153153} 
     154} 
  • bdm/estim/mixef.h

    r200 r254  
    1919#include "../stat/emix.h" 
    2020 
    21 using namespace itpp; 
     21namespace bdm{ 
    2222 
    2323enum MixEF_METHOD { EM = 0, QB = 1}; 
     
    116116}; 
    117117 
    118  
     118} 
    119119#endif // MEF_H 
    120120 
  • bdm/math/chmat.cpp

    r168 r254  
    11#include <itpp/itbase.h> 
    22#include "chmat.h" 
    3  
    4 using namespace itpp; 
    53 
    64//using std::endl; 
  • bdm/math/chmat.h

    r230 r254  
    1717#include "libDC.h" 
    1818#include "../itpp_ext.h" 
    19  
    20 using namespace itpp; 
    2119 
    2220/*! \brief Symmetric matrix stored in square root decomposition using upper cholesky 
     
    8684//!mapping of negative add operation to operators 
    8785inline chmat& chmat::operator -= ( const chmat &A2 )  {this->add ( A2,-1.0 );return *this;} 
     86 
    8887#endif // CHMAT_H 
  • bdm/stat/emix.cpp

    r235 r254  
    11#include "emix.h" 
    22 
    3 using namespace itpp; 
     3namespace bdm{ 
    44 
    55void emix::set_parameters ( const vec &w0, const Array<epdf*> &Coms0, bool copy ) { 
     
    4747}; 
    4848 
     49} 
    4950// mprod::mprod ( Array<mpdf*> mFacs, bool overlap) : mpdf ( RV(), RV() ), n ( mFacs.length() ), epdfs ( n ), mpdfs ( mFacs ), rvinds ( n ), rvcinrv ( n ), irvcs_rvc ( n ) { 
    5051//              int i; 
  • bdm/stat/emix.h

    r229 r254  
    1818//#include <std> 
    1919 
    20 using namespace itpp; 
     20namespace bdm{ 
    2121 
    2222//this comes first because it is used inside emix! 
     
    309309}; 
    310310 
     311} 
    311312#endif //MX_H 
  • bdm/stat/libBM.cpp

    r211 r254  
    33#include "../itpp_ext.h" 
    44 
    5 using namespace itpp; 
     5namespace bdm { 
    66 
    77using std::cout; 
     
    239239        for(int t=0;t<Data.cols();t++){bayes(Data.get_col(t));} 
    240240} 
     241} 
  • bdm/stat/libBM.h

    r250 r254  
    2222//#include <std> 
    2323 
     24namespace bdm{ 
    2425using namespace itpp; 
     26 
     27//! Root class of BDM objects 
     28class base{}; 
    2529 
    2630//! Structure of RV (used internally), i.e. expanded RVs 
     
    4347*/ 
    4448 
    45 class RV { 
     49class RV :base{ 
    4650protected: 
    4751        //! size = sum of sizes 
     
    135139//! Class representing function \f$f(x)\f$ of variable \f$x\f$ represented by \c rv 
    136140 
    137 class fnc { 
     141class fnc :base{ 
    138142protected: 
    139143        //! Length of the output vector 
     
    161165//! Probability density function with numerical statistics, e.g. posterior density. 
    162166 
    163 class epdf { 
     167class epdf :base { 
    164168protected: 
    165169        //! Identified of the random variable 
     
    469473*/ 
    470474 
    471 class BMcond { 
     475class BMcond :base{ 
    472476protected: 
    473477        //! Identificator of the conditioning variable 
     
    484488}; 
    485489 
     490}; //namespace 
    486491/*! @} */ 
    487492#endif // BM_H 
  • bdm/stat/libDS.cpp

    r19 r254  
    22#include "libDS.h" 
    33 
    4 //using namespace itpp; 
     4using namespace bdm; 
    55 
    66void MemDS::getdata(vec &dt){ 
  • bdm/stat/libDS.h

    r85 r254  
    1717#include "libBM.h" 
    1818 
    19 using namespace itpp; 
    20  
     19namespace bdm{ 
    2120/*! 
    2221* \brief Class representing off-line data stored in memory 
     
    4342}; 
    4443 
    45  
     44}; //namespace 
    4645 
    4746#endif // DS_H 
  • bdm/stat/libEF.cpp

    r225 r254  
    44#include <math.h> 
    55 
    6 using namespace itpp; 
     6namespace bdm{ 
    77 
    88Uniform_RNG UniRNG; 
     
    267267} 
    268268 
     269}; 
  • bdm/stat/libEF.h

    r235 r254  
    2020//#include <std> 
    2121 
    22 using namespace itpp; 
     22namespace bdm{ 
    2323 
    2424 
     
    830830}; 
    831831 
     832} 
    832833#endif //EF_H 
  • bdm/stat/libFN.cpp

    r62 r254  
    33 
    44using std::endl; 
     5using namespace bdm; 
    56 
    67bilinfn::bilinfn ( const RV &rvx0, const RV &rvu0, const mat &A0, const mat &B0 ) : diffbifn (A0.rows(), rvx0,rvu0 ) 
  • bdm/stat/libFN.h

    r85 r254  
    1616#include "libBM.h" 
    1717 
    18 using namespace itpp; 
     18namespace bdm{ 
    1919 
    2020//! class representing function \f$f(x) = a\f$, here \c rv is empty 
     
    121121}; 
    122122 
     123} //namespace 
    123124#endif // FN_H 
  • bdm/stat/loggers.cpp

    r230 r254  
    88#endif 
    99 
     10namespace bdm{ 
    1011void memlog::itsave ( const char* fname ) { 
    1112        it_file itf ( fname ); 
     
    135136                write_buffers ( ind ); //assuming here that i+1 was not filled 
    136137} 
     138 
     139} 
  • bdm/stat/loggers.h

    r250 r254  
    1818#include "../itpp_ext.h" 
    1919 
    20 using namespace itpp; 
     20namespace bdm{ 
    2121using std::string; 
    2222 
     
    126126}; 
    127127 
    128  
     128} 
    129129#endif // LGR_H 
  • bdm/uibuilder.cpp

    r248 r254  
    11#include "uibuilder.h" 
    22 
     3namespace bdm{ 
     4         
    35UImap __uimap__; 
    46 
     
    3335UIREGISTER(UIinternal); 
    3436 
    35  
     37} 
    3638//UIexternal* UIexternal_instance =new UIexternal(); 
  • bdm/uibuilder.h

    r248 r254  
    1 #include "libconfig/libconfig.h++" 
    2 #include <itpp/itbase.h> 
    3  
    41#ifndef UIBUILD 
    52#define UIBUILD 
    63 
     4#include "libconfig/libconfig.h++" 
     5#include <itpp/itbase.h> 
     6#include "stat/libBM.h" 
     7 
     8namespace bdm{ 
     9 
    710using namespace libconfig; 
    8 using namespace itpp; 
    911using namespace std; 
    1012 
     
    9294//! Prototype of a UI builder. Return value is by the second argument since it allows some type of type checking. 
    9395template<class T> 
    94 void UIbuild(Setting &S, T** ret){ 
     96                void UIbuild(Setting &S, T** ret){ 
    9597        CHECK_UITYPE(S,TypeGroup); 
    9698        T* tmp; 
     
    113115}; 
    114116 
    115  
    116 Setting& UILoad(const char* fname); 
    117  
     117} 
    118118#endif UIBUILD 
  • doprava/k1.cpp

    r208 r254  
    1919#include "model.h" 
    2020 
    21 using namespace itpp; 
     21using namespace bdm; 
    2222 
    2323int main() { 
  • doprava/model.h

    r208 r254  
    33 
    44#include <stat/libFN.h> 
     5 
     6using namespace bdm; 
    57 
    68//Tady se naplni "popis" jednotlivych nahodnych velicin na kterych se pracuje 
  • mpdm/merg_2a.cpp

    r217 r254  
    44#include <stat/loggers.h> 
    55//#include <stat/merger.h> 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • mpdm/merg_giw.cpp

    r211 r254  
    44#include <stat/loggers.h> 
    55//#include <stat/merger.h> 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • mpdm/merg_pred.cpp

    r213 r254  
    44#include <stat/loggers.h> 
    55//#include <stat/merger.h> 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • mpdm/merger_iter_cond.cpp

    r205 r254  
    33#include <estim/merger.h> 
    44 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77//These lines are needed for use of cout and endl 
  • pmsm/mpf_load.cpp

    r233 r254  
    2525#include <stat/loggers.h> 
    2626 
    27 using namespace itpp; 
     27using namespace bdm; 
    2828 
    2929class IMpmsm_load :  public IMpmsm { 
  • pmsm/mpf_test.cpp

    r230 r254  
    2424#include "sim_profiles.h" 
    2525 
    26 using namespace itpp; 
     26using namespace bdm; 
    2727 
    2828int main() { 
  • pmsm/mpf_u_delta.cpp

    r241 r254  
    2323#include "sim_profiles.h" 
    2424 
    25 using namespace itpp; 
     25using namespace bdm; 
    2626 
    2727//!Extended Kalman filter with unknown \c Q and delta u 
  • pmsm/mpf_u_delta_real.cpp

    r241 r254  
    2424#include "sim_profiles.h" 
    2525 
    26 using namespace itpp; 
     26using namespace bdm; 
    2727 
    2828class IMpmsm_delta :  public IMpmsm { 
  • pmsm/mpf_u_weight.cpp

    r228 r254  
    2323#include "sim_profiles.h" 
    2424 
    25 using namespace itpp; 
     25using namespace bdm; 
    2626 
    2727//!Extended Kalman filter with unknown \c Q 
  • pmsm/pmsm.h

    r240 r254  
    77@{ 
    88*/ 
     9 
     10using namespace bdm; 
    911 
    1012//TODO hardcoded RVs!!! 
  • pmsm/pmsm_mix.cpp

    r203 r254  
    2323#include <stat/loggers.h> 
    2424 
    25 using namespace itpp; 
     25using namespace bdm; 
    2626 
    2727int main() { 
  • pmsm/pmsm_sim.cpp

    r218 r254  
    2020#include "sim_profiles.h" 
    2121 
    22 using namespace itpp; 
     22using namespace bdm; 
    2323//!Extended Kalman filter with unknown \c Q 
    2424class EKF_unQ : public EKFCh , public BMcond { 
  • pmsm/pmsm_sim2.cpp

    r170 r254  
    2222#include "sim_profiles.h" 
    2323 
    24 using namespace itpp; 
     24using namespace bdm; 
    2525//!Extended Kalman filter with unknown \c Q 
    2626class EKF_unQ : public EKFCh , public BMcond { 
  • pmsm/pmsm_unkQ.cpp

    r170 r254  
    1818#include "pmsm.h" 
    1919 
    20 using namespace itpp; 
     20using namespace bdm; 
    2121/* 
    2222// PMSM with Q on Ia and Ib given externally 
  • pmsm/pmsm_unkQpf.cpp

    r221 r254  
    1818#include "pmsm.h" 
    1919 
    20 using namespace itpp; 
     20using namespace bdm; 
    2121 
    2222//!Extended Kalman filter with unknown \c Q 
  • pmsm/sim.cpp

    r250 r254  
    1515#include "pmsmDS.h" 
    1616 
    17 using namespace itpp; 
     17using namespace bdm; 
    1818int main() { 
    1919        UIFile F("sim.bdm"); 
  • pmsm/sim_var.cpp

    r240 r254  
    2424#include <stat/loggers.h> 
    2525 
    26 using namespace itpp; 
     26using namespace bdm; 
    2727 
    2828int main() { 
  • pmsm/sim_var_arx.cpp

    r224 r254  
    1717#include <stat/loggers.h> 
    1818 
    19 using namespace itpp; 
     19using namespace bdm; 
    2020 
    2121vec getPsi_a ( int t, mat &D, mat &Du , mat &X ); 
  • pmsm/simulator_zdenek/ekf_example/ekf_obj.h

    r145 r254  
    2121#include "parametry_motoru.h" 
    2222 
    23 using namespace itpp; 
     23using namespace bdm; 
    2424 
    2525double minQ(double Q); 
  • pmsm/testbidiff.cpp

    r73 r254  
    44#include "pmsm.h" 
    55 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • tests/UI/UIbuilder_test.cpp

    r249 r254  
    33using namespace libconfig; 
    44using namespace std; 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77class cls { 
  • tests/arx_elem_test.cpp

    r211 r254  
    11#include <estim/arx.h> 
    22#include <stat/libEF.h> 
    3 using namespace itpp; 
     3using namespace bdm; 
    44 
    55//These lines are needed for use of cout and endl 
  • tests/arx_test.cpp

    r211 r254  
    11#include <estim/arx.h> 
    22#include <stat/libEF.h> 
    3 using namespace itpp; 
     3using namespace bdm; 
    44 
    55//These lines are needed for use of cout and endl 
  • tests/datalink_test.cpp

    r192 r254  
    44#include "../bdm/math/chmat.h" 
    55 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • tests/egiw_test.cpp

    r211 r254  
    11#include <stat/libEF.h> 
    2 using namespace itpp; 
     2using namespace bdm; 
    33 
    44//These lines are needed for use of cout and endl 
  • tests/emix_test.cpp

    r211 r254  
    11#include <stat/libEF.h> 
    22#include <stat/emix.h> 
    3 using namespace itpp; 
     3using namespace bdm; 
    44 
    55//These lines are needed for use of cout and endl 
  • tests/enorm_test.cpp

    r211 r254  
    11#include <stat/libEF.h> 
    22#include <stat/emix.h> 
    3 using namespace itpp; 
     3using namespace bdm; 
    44 
    55//These lines are needed for use of cout and endl 
  • tests/loggers_test.cpp

    r162 r254  
    22#include <stat/loggers.h> 
    33 
    4 using namespace itpp; 
     4using namespace bdm; 
    55 
    66//These lines are needed for use of cout and endl 
  • tests/merger_2d_test.cpp

    r213 r254  
    33#include <estim/merger.h> 
    44 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77//These lines are needed for use of cout and endl 
  • tests/merger_iter_test.cpp

    r211 r254  
    33#include <estim/merger.h> 
    44 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77//These lines are needed for use of cout and endl 
  • tests/merger_test.cpp

    r211 r254  
    33#include <estim/merger.h> 
    44 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77//These lines are needed for use of cout and endl 
  • tests/mixef_test.cpp

    r201 r254  
    22#include <estim/arx.h> 
    33#include <stat/libEF.h> 
    4 using namespace itpp; 
     4using namespace bdm; 
    55 
    66//These lines are needed for use of cout and endl 
  • tests/rv_test.cpp

    r182 r254  
    44#include "../bdm/math/chmat.h" 
    55 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • tests/test0.cpp

    r211 r254  
    55 
    66#include <vector> 
    7 using namespace itpp; 
     7using namespace bdm; 
    88 
    99//These lines are needed for use of cout and endl 
  • tests/testEpdf.cpp

    r214 r254  
    22#include <stat/libEF.h> 
    33 
    4 using namespace itpp; 
     4using namespace bdm; 
    55 
    66//These lines are needed for use of cout and endl 
  • tests/testKF.cpp

    r170 r254  
    22#include <estim/libKF.h> 
    33 
    4 using namespace itpp; 
     4using namespace bdm; 
    55 
    66//These lines are needed for use of cout and endl 
  • tests/testKF_QR.cpp

    r170 r254  
    33#include <estim/libPF.h> 
    44 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77//These lines are needed for use of cout and endl 
  • tests/testKF_QRexh.cpp

    r162 r254  
    33#include <estim/libPF.h> 
    44 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77//These lines are needed for use of cout and endl 
  • tests/testPF.cpp

    r32 r254  
    44#include <stat/libEF.h> 
    55 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • tests/testResample.cpp

    r32 r254  
    44#include <stat/libEF.h> 
    55 
    6 using namespace itpp; 
     6using namespace bdm; 
    77 
    88//These lines are needed for use of cout and endl 
  • tests/testSmp.cpp

    r211 r254  
    33#include <stat/emix.h> 
    44 
    5 using namespace itpp; 
     5using namespace bdm; 
    66 
    77//These lines are needed for use of cout and endl