Changeset 399
- Timestamp:
- 06/29/09 15:18:56 (16 years ago)
- Location:
- library/bdm
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/base/user_info.h
r396 r399 2 2 \file 3 3 \brief UI (user info) class for loading/saving objects from/to configuration files. 4 It is designed over with an use of 'libconfig � C/C++ Configuration File Library'4 It is designed with use of libconfig C/C++ Configuration File Library 5 5 \author Vaclav Smidl. 6 6 … … 73 73 return message.c_str(); 74 74 } 75 ~UIException() throw() {}; 75 76 }; 76 77 -
library/bdm/stat/merger.cpp
r395 r399 223 223 } 224 224 225 // DEFAULTS FOR MERGER_BASE 226 const MERGER_METHOD merger_base::DFLT_METHOD=LOGNORMAL; 227 const double merger_base::DFLT_beta=1.2; 228 // DEFAULTS FOR MERGER_MIX 229 const int merger_mix::DFLT_Ncoms=10; 230 const double merger_mix::DFLT_effss_coef=0.5; 231 225 232 } -
library/bdm/stat/merger.h
r395 r399 59 59 //! switch of the methoh used for merging 60 60 MERGER_METHOD METHOD; 61 //! Default for METHOD 62 static const MERGER_METHOD DFLT_METHOD; 63 61 64 //!Prior on the log-normal merging model 62 65 double beta; 63 66 //! default for beta 67 static const double DFLT_beta; 68 64 69 //! Projection to empirical density (could also be piece-wise linear) 65 70 eEmp eSmp; … … 162 167 } 163 168 //! Set internal parameters used in approximation 164 void set_method (MERGER_METHOD MTH , double beta0 = 0.0) {169 void set_method (MERGER_METHOD MTH=DFLT_METHOD, double beta0 = DFLT_beta) { 165 170 METHOD = MTH; 166 171 beta = beta0; … … 307 312 //! stop after niter iterations 308 313 int stop_niter; 314 315 //! default value for Ncoms 316 static const int DFLT_Ncoms; 317 //! default value for efss_coef; 318 static const double DFLT_effss_coef; 309 319 310 320 public: … … 319 329 } 320 330 //! Set internal parameters used in approximation 321 void set_parameters (int Ncoms0 = 10, double effss_coef0 = 0.5) {331 void set_parameters (int Ncoms0 = DFLT_Ncoms, double effss_coef0 = DFLT_effss_coef) { 322 332 Ncoms = Ncoms0; 323 333 effss_coef = effss_coef0;