Changeset 254 for bdm

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

create namespace bdm

Location:
bdm
Files:
27 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