Changeset 989
- Timestamp:
- 05/26/10 18:42:17 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r980 r989 1276 1276 bool evalll; 1277 1277 1278 //! Initial prior (if given)1279 shared_ptr<epdf> prior0;1280 1278 public: 1281 1279 //! \name Constructors … … 1396 1394 1397 1395 //!@} 1396 //! \brief Read names of random variables from setting 1397 /*! 1398 reading structure: 1399 \TODO check if not remove... rv... 1400 \code 1401 yrv = RV(); // names of modelled data 1402 rvc = RV(); // names of data in condition 1403 rv = RV(); // names of parameters 1404 log_level = "logmean"; // identifiers of levels of detail to store to loggers 1405 \endcode 1406 */ 1398 1407 void from_setting ( const Setting &set ) { 1399 1408 UI::get(yrv, set, "yrv", UI::optional ); … … 1402 1411 UI::get(r, set, "rv", UI::optional ); 1403 1412 set_rv ( r ); 1404 1405 prior0=UI::build<epdf>(set,"prior",UI::optional); 1406 1413 1407 1414 UI::get ( log_level, set, "log_level", UI::optional ); 1408 1415 } … … 1413 1420 UI::save( &rvc, set, "rvc" ); 1414 1421 UI::save( &posterior()._rv(), set, "rv" ); 1415 if (prior0) UI::save( prior0, set, "prior" );1416 1422 UI::save( log_level, set ); 1417 1423 } 1418 1424 1425 //! process 1419 1426 void validate() 1420 1427 { … … 1424 1431 const_cast<epdf&> ( posterior() ).log_level[epdf::logmean] = true;; 1425 1432 } 1426 set_prior(prior0.get());1427 1433 } 1428 1434 };