Changeset 1383 for library/bdm
- Timestamp:
- 08/18/11 16:02:53 (13 years ago)
- Location:
- library/bdm
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/itpp/CMakeLists.txt
r812 r1383 13 13 SET(itpp_math base/math/elem_math.cpp base/math/error.cpp base/math/integration.cpp base/math/misc.cpp) 14 14 15 SET(itpp_signal signal/fastica.cpp signal/filter.cpp signal/filter_design.cpp signal/freq_filt.cpp signal/poly.cpp signal/resampling.cpp signal/source.cpp signal/transforms.cpp signal/window.cpp) 16 17 SET(itpp_stat stat/misc_stat.cpp stat/mog_diag.cpp stat/mog_diag_em.cpp stat/mog_diag_kmeans.cpp stat/mog_generic.cpp) 18 15 19 # add BDMLIB compile flag 16 20 #ADD_DEFINITIONS(-DNDEBUG) 17 21 18 22 # Normal BDM library 19 add_library (itpp STATIC ${itpp_base} ${itpp_algebra} ${itpp_bessel} ${itpp_math} )23 add_library (itpp STATIC ${itpp_base} ${itpp_algebra} ${itpp_bessel} ${itpp_math} ${itpp_signal} ${itpp_stat}) -
library/bdm/estim/arx.h
r1359 r1383 311 311 312 312 void bayes ( const vec &val, const vec &cond ) { 313 // fill window 314 Y.append_col(val); 315 Cond.append_col(cond); 316 if (Y.cols()>win_length){ 317 // shift the buffer 318 Y=Y.get_cols(1,Y.cols()-1); 319 Cond=Cond.get_cols(1,Cond.cols()-1); 313 314 if(cond.size()>0) 315 { 316 // fill window 317 Y.append_col(val); 318 Cond.append_col(cond); 319 if (Y.cols()>win_length){ 320 // shift the buffer 321 Y=Y.get_cols(1,Y.cols()-1); 322 Cond=Cond.get_cols(1,Cond.cols()-1); 323 } 324 325 est._V()=V0; 326 est._nu()=nu0; 327 for ( int t = 0; t < Y.cols(); t++ ) { 328 ARX::bayes ( Y.get_col ( t ), Cond.get_col ( t ) ); 329 } 330 } 331 else 332 { 333 Y.append_col(val); 334 335 if (Y.cols()>win_length){ 336 // shift the buffer 337 Y=Y.get_cols(1,Y.cols()-1); 338 } 339 340 est._V()=V0; 341 est._nu()=nu0; 342 343 for ( int t = 0; t < Y.cols(); t++ ) { 344 ARX::bayes (Y.get_col ( t )); 345 } 320 346 } 321 347 322 est._V()=V0; 323 est._nu()=nu0; 324 for ( int t = 0; t < Y.cols(); t++ ) { 325 ARX::bayes ( Y.get_col ( t ), Cond.get_col ( t ) ); 326 } 327 328 } 348 } 349 329 350 void from_setting(const Setting &set){ 330 351 ARX::from_setting(set); -
library/bdm/stat/exp_family.h
r1196 r1383 28 28 //! Global Gamma_RNG 29 29 extern Gamma_RNG GamRNG; 30 30 31 31 32 /*!