Changeset 254 for bdm/stat

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

create namespace bdm

Location:
bdm/stat
Files:
12 modified

Legend:

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