BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Class describing the configuration of the fit, options and parameter settings using the ROOT::Fit::ParameterSettings class
Definition at line 46 of file FitConfig.h.
Public Member Functions | |
FitConfig (const FitConfig &rhs) | |
FitConfig (unsigned int npar=0) | |
~FitConfig () | |
ROOT::Math::Minimizer * | CreateMinimizer () |
template<class T > | |
void | CreateParamsSettings (const ROOT::Math::IParamMultiFunctionTempl< T > &func) |
const std::string & | MinimizerAlgoType () const |
ROOT::Math::MinimizerOptions & | MinimizerOptions () |
const std::string & | MinimizerType () const |
bool | MinosErrors () const |
do minos errros analysis on the parameters More... | |
const std::vector< unsigned int > & | MinosParams () const |
return vector of parameter indeces for which the Minos Error will be computed More... | |
bool | NormalizeErrors () const |
unsigned int | NPar () const |
FitConfig & | operator= (const FitConfig &rhs) |
bool | ParabErrors () const |
do analysis for parabolic errors More... | |
std::vector< ROOT::Fit::ParameterSettings > & | ParamsSettings () |
const std::vector< ROOT::Fit::ParameterSettings > & | ParamsSettings () const |
std::vector< double > | ParamsValues () const |
ParameterSettings & | ParSettings (unsigned int i) |
const ParameterSettings & | ParSettings (unsigned int i) const |
void | SetFromFitResult (const FitResult &rhs) |
void | SetMinimizer (const char *type, const char *algo=0) |
void | SetMinimizerOptions (const ROOT::Math::MinimizerOptions &minopt) |
void | SetMinosErrors (bool on=true) |
set Minos erros computation to be performed after fitting More... | |
void | SetMinosErrors (const std::vector< unsigned int > ¶mInd) |
set parameter indeces for running Minos this can be used for running Minos on a subset of parameters - otherwise is run on all of them if MinosErrors() is set More... | |
void | SetNormErrors (bool on=true) |
void | SetParabErrors (bool on=true) |
set parabolic erros More... | |
void | SetParamsSettings (const std::vector< ROOT::Fit::ParameterSettings > &pars) |
void | SetParamsSettings (unsigned int npar, const double *params, const double *vstep=0) |
void | SetUpdateAfterFit (bool on=true) |
Update configuration after a fit using the FitResult. More... | |
void | SetWeightCorrection (bool on=true) |
apply the weight correction for error matric computation More... | |
bool | UpdateAfterFit () const |
Update configuration after a fit using the FitResult. More... | |
bool | UseWeightCorrection () const |
Apply Weight correction for error matrix computation. More... | |
Static Public Member Functions | |
static void | SetDefaultMinimizer (const char *type, const char *algo=0) |
Private Attributes | |
ROOT::Math::MinimizerOptions | fMinimizerOpts |
bool | fMinosErrors |
std::vector< unsigned int > | fMinosParams |
bool | fNormErrors |
bool | fParabErrors |
std::vector< ROOT::Fit::ParameterSettings > | fSettings |
bool | fUpdateAfterFit |
bool | fWeightCorr |
ROOT::Fit::FitConfig::FitConfig | ( | unsigned int | npar = 0 | ) |
Default constructor
ROOT::Fit::FitConfig::FitConfig | ( | const FitConfig & | rhs | ) |
ROOT::Fit::FitConfig::~FitConfig | ( | ) |
Destructor
ROOT::Math::Minimizer* ROOT::Fit::FitConfig::CreateMinimizer | ( | ) |
create a new minimizer according to chosen configuration
|
inline |
set the parameter settings from a model function. Create always new parameter setting list from a given model function
Definition at line 108 of file FitConfig.h.
References fSettings, ROOT::Math::IBaseParam::NPar(), ROOT::Math::IBaseParam::ParameterName(), and ROOT::Math::IBaseParam::Parameters().
|
inline |
return type of minimizer algorithms
Definition at line 193 of file FitConfig.h.
References fMinimizerOpts, and ROOT::Math::MinimizerOptions::MinimizerAlgorithm().
|
inline |
access to the minimizer control parameter (non const method)
Definition at line 166 of file FitConfig.h.
References fMinimizerOpts.
|
inline |
return type of minimizer package
Definition at line 188 of file FitConfig.h.
References fMinimizerOpts, and ROOT::Math::MinimizerOptions::MinimizerType().
|
inline |
do minos errros analysis on the parameters
Definition at line 205 of file FitConfig.h.
References fMinosErrors.
|
inline |
return vector of parameter indeces for which the Minos Error will be computed
Definition at line 215 of file FitConfig.h.
References fMinosParams.
|
inline |
flag to check if resulting errors are be normalized according to chi2/ndf
Definition at line 199 of file FitConfig.h.
References fNormErrors.
|
inline |
|
inline |
do analysis for parabolic errors
Definition at line 202 of file FitConfig.h.
References fParabErrors.
|
inline |
get the vector of parameter settings (non-const method)
Definition at line 90 of file FitConfig.h.
References fSettings.
|
inline |
get the vector of parameter settings (const method)
Definition at line 85 of file FitConfig.h.
References fSettings.
std::vector<double> ROOT::Fit::FitConfig::ParamsValues | ( | ) | const |
return a vector of stored parameter values (i.e initial fit parameters)
|
inline |
get the parameter settings for the i-th parameter (non-const method)
Definition at line 80 of file FitConfig.h.
References fSettings.
|
inline |
get the parameter settings for the i-th parameter (const method)
Definition at line 75 of file FitConfig.h.
References fSettings.
|
static |
static function to control default minimizer type and algorithm
void ROOT::Fit::FitConfig::SetFromFitResult | ( | const FitResult & | rhs | ) |
|
inline |
set minimizer type
Definition at line 180 of file FitConfig.h.
References fMinimizerOpts, ROOT::Math::MinimizerOptions::SetMinimizerAlgorithm(), and ROOT::Math::MinimizerOptions::SetMinimizerType().
void ROOT::Fit::FitConfig::SetMinimizerOptions | ( | const ROOT::Math::MinimizerOptions & | minopt | ) |
set all the minimizer options using class MinimizerOptions
|
inline |
set Minos erros computation to be performed after fitting
Definition at line 226 of file FitConfig.h.
References fMinosErrors.
|
inline |
set parameter indeces for running Minos this can be used for running Minos on a subset of parameters - otherwise is run on all of them if MinosErrors() is set
Definition at line 234 of file FitConfig.h.
References fMinosErrors, and fMinosParams.
|
inline |
set the option to normalize the error on the result according to chi2/ndf
Definition at line 220 of file FitConfig.h.
References fNormErrors.
|
inline |
|
inline |
void ROOT::Fit::FitConfig::SetParamsSettings | ( | unsigned int | npar, |
const double * | params, | ||
const double * | vstep = 0 |
||
) |
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.
|
inline |
Update configuration after a fit using the FitResult.
Definition at line 240 of file FitConfig.h.
References fUpdateAfterFit.
|
inline |
apply the weight correction for error matric computation
Definition at line 229 of file FitConfig.h.
References fWeightCorr.
|
inline |
Update configuration after a fit using the FitResult.
Definition at line 208 of file FitConfig.h.
References fUpdateAfterFit.
|
inline |
Apply Weight correction for error matrix computation.
Definition at line 211 of file FitConfig.h.
References fWeightCorr.
|
private |
Definition at line 265 of file FitConfig.h.
Referenced by MinimizerAlgoType(), MinimizerOptions(), MinimizerType(), and SetMinimizer().
|
private |
Definition at line 258 of file FitConfig.h.
Referenced by MinosErrors(), and SetMinosErrors().
|
private |
Definition at line 263 of file FitConfig.h.
Referenced by MinosParams(), and SetMinosErrors().
|
private |
Definition at line 256 of file FitConfig.h.
Referenced by NormalizeErrors(), and SetNormErrors().
|
private |
Definition at line 257 of file FitConfig.h.
Referenced by ParabErrors(), and SetParabErrors().
|
private |
Definition at line 262 of file FitConfig.h.
Referenced by CreateParamsSettings(), NPar(), ParamsSettings(), ParSettings(), and SetParamsSettings().
|
private |
Definition at line 259 of file FitConfig.h.
Referenced by SetUpdateAfterFit(), and UpdateAfterFit().
|
private |
Definition at line 260 of file FitConfig.h.
Referenced by SetWeightCorrection(), and UseWeightCorrection().