Changeset 536 for library/bdm/stat/emix.h
- Timestamp:
- 08/16/09 18:13:31 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/emix.h
r529 r536 165 165 166 166 shared_ptr<epdf> marginal ( const RV &rv ) const; 167 //! Update already existing marginal density \c target 167 168 void marginal ( const RV &rv, emix &target ) const; 168 169 shared_ptr<mpdf> condition ( const RV &rv ) const; … … 290 291 set_elements ( mFacs ); 291 292 } 292 293 //! Set internal \c mpdfs from given values 293 294 void set_elements (const Array<shared_ptr<mpdf> > &mFacs ); 294 295 … … 339 340 return smp; 340 341 } 341 mat samplecond ( const vec &cond, int N ) {342 mat Smp ( dimension(), N );343 for ( int i = 0; i < N; i++ ) {344 Smp.set_col ( i, samplecond ( cond ) );345 }346 return Smp;347 }348 342 349 343 //! Load from structure with elements: … … 372 366 Array<datalink*> dls; 373 367 public: 368 //! Default constructor 374 369 eprod () : epdfs ( 0 ), dls ( 0 ) {}; 370 //! Set internal 375 371 void set_parameters ( const Array<const epdf*> &epdfs0, bool named = true ) { 376 372 epdfs = epdfs0;//.set_length ( epdfs0.length() ); … … 470 466 //! Set weights \c w and components \c R 471 467 void set_parameters ( const vec &w0, const Array<shared_ptr<mpdf> > &Coms0 ) { 472 //!\ TODOcheck if all components are OK468 //!\todo check if all components are OK 473 469 Coms = Coms0; 474 470 w=w0;