Changeset 1077 for library/bdm/stat/exp_family.h
- Timestamp:
- 06/10/10 21:40:09 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/stat/exp_family.h
r1068 r1077 111 111 } 112 112 113 /*! Create object from the following structure 114 115 \code 116 class = 'BMEF'; 117 --- optional fields --- 118 frg = []; % forgetting factor 119 frg_sched_factor = []; % factor for scheduling of forgetting factor: a number from [0..1] 120 --- inherited fields --- 121 bdm::BM::from_setting 122 \endcode 123 If the optional fields are not given, they will be filled as follows: 124 \code 125 frg = 1; % default forgetting factor 126 frg_sched_factor = 0; 127 \endcode 128 */ 113 129 void from_setting( const Setting &set) { 114 130 BM::from_setting(set); 115 131 if ( !UI::get ( frg, set, "frg" ) ) 116 132 frg = 1.0; 117 UI::get ( frg_sched_factor, set, "frg_sched_factor",UI::optional ); 133 if ( UI::get ( frg_sched_factor, set, "frg_sched_factor" ) ) 134 frg_sched_factor = 0.0; 118 135 } 119 136 … … 364 381 * \brief Gauss-inverse-Wishart density stored in LD form 365 382 366 * For \f$p\f$-variate densities, given rv.count() should be \f$p \times\f$ V.rows().383 * For \f$p\f$-variate densities, given rv.count() should be \f$p imes\f$ V.rows(). 367 384 * 368 385 */ … … 402 419 403 420 void factorize ( mat &M, ldmat &Vz, ldmat &Lam ) const; 404 //! LS estimate of \f$ \theta\f$421 //! LS estimate of \f$ heta\f$ 405 422 vec est_theta() const; 406 423 … … 830 847 UI::save( &est, set, "prior" ); 831 848 } 849 850 /*! Create object from the following structure 851 852 \code 853 class = 'MultiBM'; 854 prior = configuration of bdm::eDirich; % any offspring of eDirich, bdm::eDirich::from_setting 855 --- inherited fields --- 856 bdm::BMEF::from_setting 857 \endcode 858 */ 832 859 void from_setting (const Setting &set ) { 833 860 BMEF::from_setting ( set ); … … 2062 2089 }; 2063 2090 2064 //! \todo unify this stuff with to_string()2091 //! odo unify this stuff with to_string() 2065 2092 template<class sq_T> 2066 2093 std::ostream &operator<< ( std::ostream &os, mlnorm<sq_T> &ml ) {