Changeset 399 for library/bdm/stat/merger.h
- Timestamp:
- 06/29/09 15:18:56 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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;