[root] / trunk / math / mathcore / inc / Fit / FitConfig.h Repository:
ViewVC logotype

Diff of /trunk/math/mathcore/inc/Fit/FitConfig.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 25485, Mon Sep 22 07:52:52 2008 UTC revision 25486, Mon Sep 22 12:43:03 2008 UTC
# Line 34  Line 34 
34     namespace Math {     namespace Math {
35    
36        class Minimizer;        class Minimizer;
37          class MinimizerOptions;
38     }     }
39    
40     namespace Fit {     namespace Fit {
# Line 62  Line 63 
63     /**     /**
64        get the parameter settings for the i-th parameter (const method)        get the parameter settings for the i-th parameter (const method)
65     */     */
66     const ParameterSettings & ParSettings(unsigned int i) const { return fSettings[i]; }     const ParameterSettings & ParSettings(unsigned int i) const { return fSettings.at(i); }
67    
68     /**     /**
69        get the parameter settings for the i-th parameter (non-const method)        get the parameter settings for the i-th parameter (non-const method)
70     */     */
71     ParameterSettings & ParSettings(unsigned int i) { return fSettings[i]; }     ParameterSettings & ParSettings(unsigned int i) { return fSettings.at(i); }
72    
73     /**     /**
74        get the vector of parameter settings  (const method)        get the vector of parameter settings  (const method)
# Line 81  Line 82 
82    
83    
84     /**     /**
85        set the parameter settings from number of params and optionally a vector of values (otherwise are set to zero)        set the parameter settings from a model function.
86          Create always new parameter setting list from a given model function
87     */     */
88     void SetParamsSettings(unsigned int npar, const double * params = 0);     void CreateParamsSettings(const ROOT::Math::IParamMultiFunction & func);
89    
90     /**     /**
91        set the parameter settings from a function        set the parameter settings from number of parameters and a vector of values and optionally step values. If there are not existing or number of parameters does not match existing one, create a new parameter setting list.
92     */     */
93     void SetParamsSettings(const ROOT::Math::IParamMultiFunction & func);     void SetParamsSettings(unsigned int npar, const double * params, const double * vstep = 0);
94    
95    
96     /**     /**
97        create a new minimizer according to chosen configuration        create a new minimizer according to chosen configuration
# Line 107  Line 110 
110     MinimizerControlParams & MinimizerOptions()  { return fMinimizerOpts; }     MinimizerControlParams & MinimizerOptions()  { return fMinimizerOpts; }
111    
112    
113    #ifndef __CINT__   // this method fails on Windows
114       /**
115          set all the minimizer options using class MinimizerOptions
116        */
117       void SetMinimizerOptions(const ROOT::Math::MinimizerOptions & minopt);
118    #endif
119    
120    
121     /**     /**
122        set minimizer type        set minimizer type
123     */     */
# Line 129  Line 140 
140     /**     /**
141        flag to check if resulting errors are be normalized according to chi2/ndf        flag to check if resulting errors are be normalized according to chi2/ndf
142     */     */
143     bool NormalizeErrors(){ return fNormErrors; }     bool NormalizeErrors() const { return fNormErrors; }
144    
145       ///do analysis for parabolic errors
146       bool ParabErrors() const { return fParabErrors; }
147    
148       ///do minos errros analysis on all parameters
149       bool MinosErrors() const { return fMinosErrors; }
150    
151     /**     /**
152        set the option to normalize the error on the result  according to chi2/ndf        set the option to normalize the error on the result  according to chi2/ndf
153     */     */
154     void SetNormErrors(bool on) { fNormErrors= on; }     void SetNormErrors(bool on) { fNormErrors= on; }
155    
156       ///set parabolic erros
157       void SetParabErrors(bool on) { fParabErrors = on; }
158    
159       ///set Minos erros
160       void SetMinosErrors(bool on) { fMinosErrors = on; }
161    
162    
163    
164     /**     /**
165        static function to control default minimizer type and algorithm        static function to control default minimizer type and algorithm
# Line 149  Line 173 
173  private:  private:
174    
175     bool fNormErrors;    // flag for error normalization     bool fNormErrors;    // flag for error normalization
176       bool fParabErrors;   // get correct parabolic errors estimate (call Hesse after minimizing)
177       bool fMinosErrors;   // do full error analysis using Minos
178    
179    
180     std::vector<ROOT::Fit::ParameterSettings> fSettings;  // vector with the parameter settings     std::vector<ROOT::Fit::ParameterSettings> fSettings;  // vector with the parameter settings
181    

Legend:
Removed from v.25485  
changed lines
  Added in v.25486

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9