Changeset 1063 for library/bdm/base
- Timestamp:
- 06/09/10 11:50:16 (14 years ago)
- Location:
- library/bdm/base
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/bdmbase.h
r1060 r1063 570 570 571 571 This macro has to be called within a class declaration. Its argument \a classname has to correspond to that wrapping class. 572 This macro defines a log_level instance which can be modified either directly or by the means of # UI class.572 This macro defines a log_level instance which can be modified either directly or by the means of #bdm::UI class. 573 573 574 574 One of the main purposes of this macro is to allow variability in using enumerations. By relating them to their names through … … 736 736 //! log upper bound of the density (see function qbounds) 737 737 738 //! \var log_level_enums logfull739 //! log full record of the density in the form of setting740 738 LOG_LEVEL(epdf,logmean,loglbound,logubound); 741 739 … … 801 799 //! Set statistics to match given input epdf. Typically it copies statistics from epdf of the same type and projects those form different types 802 800 //! \param pdf0 epdf to match 803 //! \param option placeholder for potential options804 801 void set_statistics(const epdf *pdf0) NOT_IMPLEMENTED_VOID; 805 802 //!@} … … 1309 1306 1310 1307 /*! \brief Incremental Bayes rule 1311 @param dt vector of input data1308 @param yt vector of input data 1312 1309 */ 1313 1310 virtual void bayes ( const vec &yt, const vec &cond = empty_vec ) =0; -
library/bdm/base/datasources.h
r1060 r1063 269 269 class = 'PdfDS'; 270 270 pdf = configuration of bdm::pdf; % any offspring of pdf, bdm::pdf::from_setting 271 --- optional ---271 --- optional fields --- 272 272 init_rv = RV({'names',...},[sizes,...],[times,...]); % define what rv to initialize - typically delayed values, time=-1, etc.! 273 273 init_values = [...]; % vector of initial values corresponding to init_rv 274 274 \endcode 275 Class does not inheritsfrom bdm::DS::from_setting, names of data are taken from pdf.rv and pdf.rvc.275 Class does not call from bdm::DS::from_setting, names of data are taken from pdf.rv and pdf.rvc. 276 276 277 277 If init_rv is not given, init_values are set to zero. -
library/bdm/base/user_info.h
r1015 r1063 395 395 //! The new instance of type T* is constructed and initialized with values stored in the Setting element[name] 396 396 //! 397 //! If there does not exist any sub-element named #name and settingPresence is #optional, an empty bdm::shared_ptr<T> is returned. When settingPresence is #compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 397 //! If there does not exist any sub-element named name and settingPresence is optional, an empty bdm::shared_ptr<T> is returned. 398 //! When settingPresence is compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 398 399 template<class T> 399 400 static bdm::shared_ptr<T> build ( const Setting &element, const string &name, SettingPresence settingPresence = optional ) { … … 412 413 //! The new instance of type T* is constructed and initialized with values stored in the Setting element[index] 413 414 //! 414 //! If there does not exist any sub-element indexed by #index, and settingPresence is #optional, an empty bdm::shared_ptr<T> is returned. When settingPresence is #compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 415 //! If there does not exist any sub-element indexed by index, and settingPresence is optional, an empty bdm::shared_ptr<T> is returned. 416 //! When settingPresence is compulsory, the returned bdm::shared_ptr<T> is never empty (an exception is thrown when the object isn't found). 415 417 template<class T> 416 418 static bdm::shared_ptr<T> build ( const Setting &element, const int index, SettingPresence settingPresence = optional ) { … … 447 449 448 450 //! The existing instance of type T is initialized with values stored in the Setting element[name] 449 //! If there does not exist any sub-element named #name, this method returns false.451 //! If there does not exist any sub-element named name, this method returns false. 450 452 template<class T> static bool get ( T &instance, const Setting &element, const string &name, SettingPresence settingPresence = optional ) { 451 453 if ( !element.exists ( name ) ) { … … 461 463 462 464 //! The existing instance of type T is initialized with values stored in the Setting element[index] 463 //! If there does not exist any sub-element indexed by #index, this method returns false.465 //! If there does not exist any sub-element indexed by index, this method returns false. 464 466 template<class T> static bool get ( T &instance, const Setting &element, const int index, SettingPresence settingPresence = optional ) { 465 467 if ( element.getLength() <= index ) { … … 490 492 491 493 //! The existing array of type T is initialized with values stored in the Setting element[name] 492 //! If there is not any sub-element named #name, this method returns false.494 //! If there is not any sub-element named name, this method returns false. 493 495 template<class T> static bool get ( Array<T> &array_to_load, const Setting &element, const string &name, SettingPresence settingPresence = optional ) { 494 496 if ( !element.exists ( name ) ) { … … 504 506 505 507 //! The existing array of type T is initialized with values stored in the Setting element[index] 506 //! If there is not any sub-element indexed by #index, this method returns false.508 //! If there is not any sub-element indexed by index, this method returns false. 507 509 template<class T> static bool get ( Array<T> &array_to_load, const Setting &element, const int index, SettingPresence settingPresence = optional ) { 508 510 if ( element.getLength() <= index ) {