Changeset 701
- Timestamp:
- 11/04/09 22:55:04 (15 years ago)
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/bdmtoolbox/mex/estimator.cpp
r700 r701 148 148 Ename="Est"+num2str ( i ); 149 149 } 150 150 if (Es(i)->posterior()._log_level()<1){ 151 const_cast<epdf&>(Es (i) ->posterior()).set_log_level (1); 152 } 153 151 154 Es ( i )->log_register ( *L,Ename ); // estimate 152 155 } … … 182 185 183 186 for ( int i=0; i<Es.length(); i++ ) { 184 Es ( i )->bayes ( Dls ( i )->pushdown ( dt ), Dlsc(i) ->pushdown(dt) ); // update estimates 187 if (tK + Es ( i )->_rvc().mint() > 0 ) { 188 Es ( i )->bayes ( Dls ( i )->pushdown ( dt ), Dlsc(i) ->pushdown(dt) ); // update estimates 189 } 185 190 Es ( i )->log_write (); 186 191 } -
applications/bdmtoolbox/tutorial/userguide/pdfds_example.m
r700 r701 9 9 fy.A = [0.5, -0.9]; 10 10 fy.const = 0; 11 fy.R = 1e- 1;11 fy.R = 1e-2; 12 12 13 13 % create f(u_t| ) … … 18 18 19 19 % create DS 20 DS.class = ' MpdfDS';21 DS. mpdf.class = 'mprod';22 DS. mpdf.mpdfs = {fy, fu};20 DS.class = 'PdfDS'; 21 DS.pdf.class = 'mprod'; 22 DS.pdf.pdfs = {fy, fu}; 23 23 DS.init_rv = RVtimes([y,y,y], [-1,-2,-3]); 24 24 DS.init_values = [0.1, 0.2, 0.3]; … … 34 34 true_theta=[fy.A fy.const]; 35 35 true_R=[fy.R]; 36 save mpdfds_results Data drv y u true_theta true_R36 save pdfds_results Data drv y u true_theta true_R -
library/bdm/bdmroot.h
r691 r701 85 85 virtual void validate() { 86 86 } 87 //! access function 88 int _log_level() const {return log_level;} 87 89 88 90 };