Changeset 675 for library/bdm/stat/emix.h
- Timestamp:
- 10/21/09 20:19:40 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/emix.h
r660 r675 47 47 //!datalink between conditional and nom 48 48 datalink_m2e dl; 49 //! dummy epdf that stores only rv and dim50 epdf iepdf;51 49 public: 52 50 //!Default constructor. By default, the given epdf is not copied! 53 51 //! It is assumed that this function will be used only temporarily. 54 mratio ( const epdf* nom0, const RV &rv, bool copy = false ) : mpdf ( ), dl ( ) ,iepdf(){52 mratio ( const epdf* nom0, const RV &rv, bool copy = false ) : mpdf ( ), dl ( ) { 55 53 // adjust rv and rvc 54 55 set_rv( rv ); // TODO co kdyby tohle samo uz nastavovalo dimension?!?! 56 dim = rv._dsize(); 57 56 58 rvc = nom0->_rv().subt ( rv ); 57 59 dimc = rvc._dsize(); 58 set_ep ( iepdf ); 59 iepdf.set_parameters ( rv._dsize() ); 60 iepdf.set_rv ( rv ); 61 60 62 61 //prepare data structures 63 62 if ( copy ) { … … 74 73 dl.set_connection ( rv, rvc, nom0->_rv() ); 75 74 }; 75 76 76 double evallogcond ( const vec &val, const vec &cond ) { 77 77 double tmp; … … 469 469 //!weights of the components 470 470 vec w; 471 //! dummy epdfs472 epdf dummy_epdf;473 471 public: 474 472 //!Default constructor 475 mmix() : Coms(0) , dummy_epdf() { set_ep(dummy_epdf);}473 mmix() : Coms(0) { } 476 474 477 475 //! Set weights \c w and components \c R … … 483 481 if (Coms0.length()>0){ 484 482 set_rv(Coms(0)->_rv()); 485 d ummy_epdf.set_parameters(Coms(0)->_rv()._dsize());483 dim = rv._dsize(); 486 484 set_rvc(Coms(0)->_rvc()); 487 485 dimc = rvc._dsize();