ROOT
6.07/01
Reference Guide
|
Minimizer options.
Definition at line 32 of file MinimizerOptions.h.
Public Member Functions | |
MinimizerOptions () | |
~MinimizerOptions () | |
MinimizerOptions (const MinimizerOptions &opt) | |
MinimizerOptions & | operator= (const MinimizerOptions &opt) |
assignment operators More... | |
int | PrintLevel () const |
non-static methods for retrieving options More... | |
unsigned int | MaxFunctionCalls () const |
max number of function calls More... | |
unsigned int | MaxIterations () const |
max iterations More... | |
int | Strategy () const |
strategy More... | |
double | Tolerance () const |
absolute tolerance More... | |
double | Precision () const |
precision in the objective funciton calculation (value <=0 means left to default) More... | |
double | ErrorDef () const |
error definition More... | |
const IOptions * | ExtraOptions () const |
return extra options (NULL pointer if they are not present) More... | |
const std::string & | MinimizerType () const |
type of minimizer More... | |
const std::string & | MinimizerAlgorithm () const |
type of algorithm More... | |
void | Print (std::ostream &os=std::cout) const |
print all the options More... | |
void | ResetToDefaultOptions () |
non-static methods for setting options More... | |
void | SetPrintLevel (int level) |
set print level More... | |
void | SetMaxFunctionCalls (unsigned int maxfcn) |
set maximum of function calls More... | |
void | SetMaxIterations (unsigned int maxiter) |
set maximum iterations (one iteration can have many function calls) More... | |
void | SetTolerance (double tol) |
set the tolerance More... | |
void | SetPrecision (double prec) |
set the precision More... | |
void | SetStrategy (int stra) |
set the strategy More... | |
void | SetErrorDef (double err) |
set error def More... | |
void | SetMinimizerType (const char *type) |
set minimizer type More... | |
void | SetMinimizerAlgorithm (const char *type) |
set minimizer algorithm More... | |
void | SetExtraOptions (const IOptions &opt) |
set extra options (in this case pointer is cloned) More... | |
Static Public Member Functions | |
static void | SetDefaultMinimizer (const char *type, const char *algo=0) |
static void | SetDefaultErrorDef (double up) |
static void | SetDefaultTolerance (double tol) |
static void | SetDefaultPrecision (double prec) |
static void | SetDefaultMaxFunctionCalls (int maxcall) |
static void | SetDefaultMaxIterations (int maxiter) |
static void | SetDefaultStrategy (int strat) |
static void | SetDefaultPrintLevel (int level) |
static void | SetDefaultExtraOptions (const IOptions *extraoptions) |
static const std::string & | DefaultMinimizerType () |
static const std::string & | DefaultMinimizerAlgo () |
static double | DefaultErrorDef () |
static double | DefaultTolerance () |
static double | DefaultPrecision () |
static int | DefaultMaxFunctionCalls () |
static int | DefaultMaxIterations () |
static int | DefaultStrategy () |
static int | DefaultPrintLevel () |
static IOptions * | DefaultExtraOptions () |
static ROOT::Math::IOptions & | Default (const char *name) |
retrieve extra options - if not existing create a IOptions More... | |
static ROOT::Math::IOptions * | FindDefault (const char *name) |
static void | PrintDefault (const char *name, std::ostream &os=std::cout) |
print all the default options for the name given More... | |
Private Attributes | |
int | fLevel |
int | fMaxCalls |
int | fMaxIter |
int | fStrategy |
double | fErrorDef |
double | fTolerance |
double | fPrecision |
std::string | fMinimType |
std::string | fAlgoType |
ROOT::Math::IOptions * | fExtraOptions |
#include <Math/MinimizerOptions.h>
ROOT::Math::MinimizerOptions::MinimizerOptions | ( | ) |
Definition at line 109 of file MinimizerOptions.cxx.
ROOT::Math::MinimizerOptions::~MinimizerOptions | ( | ) |
Definition at line 142 of file MinimizerOptions.cxx.
ROOT::Math::MinimizerOptions::MinimizerOptions | ( | const MinimizerOptions & | opt | ) |
Definition at line 118 of file MinimizerOptions.cxx.
|
static |
retrieve extra options - if not existing create a IOptions
Definition at line 203 of file MinimizerOptions.cxx.
|
static |
Definition at line 81 of file MinimizerOptions.cxx.
Referenced by TFitEditor::CreateMinimizationTab(), TFitEditor::DoReset(), and TVirtualFitter::GetErrorDef().
|
static |
Definition at line 88 of file MinimizerOptions.cxx.
|
static |
Definition at line 84 of file MinimizerOptions.cxx.
Referenced by TVirtualFitter::GetMaxIterations().
|
static |
Definition at line 85 of file MinimizerOptions.cxx.
Referenced by ROOT::Math::BasicMinimizer::BasicMinimizer(), TFitEditor::CreateMinimizationTab(), TFitEditor::DoReset(), ROOT::Math::GeneticMinimizerParameters::GeneticMinimizerParameters(), ROOT::Math::GSLMinimizer::GSLMinimizer(), and ROOT::Math::GSLNLSMinimizer::GSLNLSMinimizer().
|
static |
|
static |
Definition at line 90 of file MinimizerOptions.cxx.
Referenced by TFitEditor::CreateMinimizationTab(), ROOT::Math::Factory::CreateMinimizer(), ROOT::Fit::FitConfig::CreateMinimizer(), RooStats::LikelihoodInterval::CreateMinimizer(), RooStats::BernsteinCorrection::CreateQSamplingDist(), RooStats::ProfileLikelihoodCalculator::DoMinimizeNLL(), RooStats::AsymptoticCalculator::EvaluateNLL(), TVirtualFitter::GetDefaultFitter(), TF1::GetMinMaxNDim(), RooStats::BernsteinCorrection::ImportCorrectedPdf(), RooStats::AsymptoticCalculator::MakeAsimovData(), RooStats::MaxLikelihoodEstimateTestStat::MaxLikelihoodEstimateTestStat(), RooStats::ProfileLikelihoodTestStat::ProfileLikelihoodTestStat(), ResetToDefaultOptions(), rs_bernsteinCorrection(), and StandardBayesianNumericalDemo().
|
static |
Definition at line 83 of file MinimizerOptions.cxx.
|
static |
Definition at line 87 of file MinimizerOptions.cxx.
Referenced by ROOT::Math::BasicMinimizer::BasicMinimizer(), RooStats::BernsteinCorrection::CreateQSamplingDist(), RooStats::ProfileLikelihoodCalculator::DoMinimizeNLL(), ROOT::Math::GSLMinimizer::GSLMinimizer(), ROOT::Math::GSLNLSMinimizer::GSLNLSMinimizer(), RooStats::BernsteinCorrection::ImportCorrectedPdf(), RooStats::AsymptoticCalculator::MakeAsimovData(), RooStats::MaxLikelihoodEstimateTestStat::MaxLikelihoodEstimateTestStat(), RooStats::ProfileLikelihoodTestStat::ProfileLikelihoodTestStat(), and StandardBayesianNumericalDemo().
|
static |
Definition at line 86 of file MinimizerOptions.cxx.
Referenced by RooStats::ProfileLikelihoodCalculator::DoMinimizeNLL(), RooStats::AsymptoticCalculator::EvaluateNLL(), RooStats::AsymptoticCalculator::MakeAsimovData(), RooStats::MaxLikelihoodEstimateTestStat::MaxLikelihoodEstimateTestStat(), and RooStats::ProfileLikelihoodTestStat::ProfileLikelihoodTestStat().
|
static |
Definition at line 82 of file MinimizerOptions.cxx.
Referenced by TFitEditor::CreateMinimizationTab(), RooStats::ProfileLikelihoodCalculator::DoMinimizeNLL(), TFitEditor::DoReset(), RooStats::AsymptoticCalculator::EvaluateNLL(), ROOT::Math::GeneticMinimizerParameters::GeneticMinimizerParameters(), RooStats::AsymptoticCalculator::GetHypoTest(), TVirtualFitter::GetPrecision(), ROOT::Math::GSLNLSMinimizer::GSLNLSMinimizer(), and RooStats::ProfileLikelihoodTestStat::ProfileLikelihoodTestStat().
|
inline |
error definition
Definition at line 103 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), ROOT::Fit::Fitter::DoBinnedLikelihoodFit(), ROOT::Fit::Fitter::DoUnbinnedLikelihoodFit(), ROOT::Math::Minimizer::ErrorDef(), TBinomialEfficiencyFitter::Fit(), and TFractionFitter::TFractionFitter().
|
inline |
return extra options (NULL pointer if they are not present)
Definition at line 106 of file MinimizerOptions.h.
Referenced by Print(), PrintDefault(), and ROOT::Math::GeneticMinimizer::SetOptions().
|
static |
Definition at line 208 of file MinimizerOptions.cxx.
Referenced by ROOT::Math::GeneticMinimizer::GeneticMinimizer(), ROOT::Minuit2::Minuit2Minimizer::Minimize(), PrintDefault(), and ResetToDefaultOptions().
|
inline |
max number of function calls
Definition at line 88 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), and ROOT::Math::Minimizer::MaxFunctionCalls().
|
inline |
max iterations
Definition at line 91 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), ROOT::Math::Minimizer::MaxIterations(), and ROOT::Math::GeneticMinimizer::SetOptions().
|
inline |
type of algorithm
Definition at line 112 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), and ROOT::Fit::FitConfig::MinimizerAlgoType().
|
inline |
type of minimizer
Definition at line 109 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), and ROOT::Fit::FitConfig::MinimizerType().
MinimizerOptions & ROOT::Math::MinimizerOptions::operator= | ( | const MinimizerOptions & | opt | ) |
assignment operators
Definition at line 123 of file MinimizerOptions.cxx.
|
inline |
precision in the objective funciton calculation (value <=0 means left to default)
Definition at line 100 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), and ROOT::Math::Minimizer::Precision().
void ROOT::Math::MinimizerOptions::Print | ( | std::ostream & | os = std::cout | ) | const |
print all the options
Definition at line 185 of file MinimizerOptions.cxx.
Referenced by PrintDefault().
|
static |
print all the default options for the name given
Definition at line 213 of file MinimizerOptions.cxx.
|
inline |
non-static methods for retrieving options
set print level
Definition at line 85 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), ROOT::Fit::Fitter::DoBinnedLikelihoodFit(), ROOT::Fit::Fitter::DoLeastSquareFit(), ROOT::Fit::Fitter::DoUnbinnedLikelihoodFit(), ROOT::Math::Minimizer::PrintLevel(), and ROOT::Math::GeneticMinimizer::SetOptions().
void ROOT::Math::MinimizerOptions::ResetToDefaultOptions | ( | ) |
non-static methods for setting options
Definition at line 146 of file MinimizerOptions.cxx.
Referenced by MinimizerOptions(), and ROOT::Math::Minimizer::SetDefaultOptions().
Definition at line 46 of file MinimizerOptions.cxx.
Referenced by TVirtualFitter::SetErrorDef().
Definition at line 74 of file MinimizerOptions.cxx.
|
static |
Definition at line 58 of file MinimizerOptions.cxx.
Referenced by TVirtualFitter::SetMaxIterations().
|
static |
Definition at line 62 of file MinimizerOptions.cxx.
|
static |
Definition at line 41 of file MinimizerOptions.cxx.
Referenced by DoFit(), fitNormSum(), rs_bernsteinCorrection(), TVirtualFitter::SetDefaultFitter(), ROOT::Fit::FitConfig::SetDefaultMinimizer(), and testUserFunc().
Definition at line 54 of file MinimizerOptions.cxx.
|
static |
Definition at line 70 of file MinimizerOptions.cxx.
Referenced by rs_bernsteinCorrection().
|
static |
Definition at line 66 of file MinimizerOptions.cxx.
Definition at line 50 of file MinimizerOptions.cxx.
Referenced by TVirtualFitter::SetPrecision().
set error def
Definition at line 139 of file MinimizerOptions.h.
Referenced by ROOT::Fit::Fitter::DoBinnedLikelihoodFit(), ROOT::Fit::Fitter::DoUnbinnedLikelihoodFit(), TFractionFitter::ErrorAnalysis(), TBinomialEfficiencyFitter::Fit(), ROOT::Math::GeneticMinimizer::GetGeneticOptions(), TFitEditor::RetrieveOptions(), ROOT::Math::Minimizer::SetErrorDef(), and TFractionFitter::TFractionFitter().
set extra options (in this case pointer is cloned)
Definition at line 179 of file MinimizerOptions.cxx.
Referenced by ROOT::Math::GeneticMinimizer::GeneticMinimizer(), and ROOT::Math::GeneticMinimizer::GetGeneticOptions().
|
inline |
set maximum of function calls
Definition at line 124 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), ROOT::Math::GeneticMinimizer::GetGeneticOptions(), TFitEditor::RetrieveOptions(), and ROOT::Math::Minimizer::SetMaxFunctionCalls().
|
inline |
set maximum iterations (one iteration can have many function calls)
Definition at line 127 of file MinimizerOptions.h.
Referenced by ROOT::Math::GeneticMinimizer::GetGeneticOptions(), TFitEditor::RetrieveOptions(), and ROOT::Math::Minimizer::SetMaxIterations().
|
inline |
set minimizer algorithm
Definition at line 145 of file MinimizerOptions.h.
Referenced by ROOT::Math::GeneticMinimizer::GetGeneticOptions(), TFitEditor::RetrieveOptions(), and ROOT::Fit::FitConfig::SetMinimizer().
|
inline |
set minimizer type
Definition at line 142 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), ROOT::Math::GeneticMinimizer::GetGeneticOptions(), TFitEditor::RetrieveOptions(), and ROOT::Fit::FitConfig::SetMinimizer().
set the precision
Definition at line 133 of file MinimizerOptions.h.
Referenced by ROOT::Math::GeneticMinimizer::GetGeneticOptions(), and ROOT::Math::Minimizer::SetPrecision().
|
inline |
set print level
Definition at line 121 of file MinimizerOptions.h.
Referenced by combinedFit(), DoBinFit(), DoFit(), DoUnBinFit(), DoUnBinFitVec(), TBinomialEfficiencyFitter::Fit(), HFit::Fit(), ROOT::Math::GeneticMinimizer::GetGeneticOptions(), ROOT::Math::Minimizer::SetPrintLevel(), testUnBin1DFit(), TFractionFitter::TFractionFitter(), and ROOT::Fit::UnBinFit().
|
inline |
set the strategy
Definition at line 136 of file MinimizerOptions.h.
Referenced by DoUnBinFit(), ROOT::Math::GeneticMinimizer::GetGeneticOptions(), and ROOT::Math::Minimizer::SetStrategy().
set the tolerance
Definition at line 130 of file MinimizerOptions.h.
Referenced by DoFit(), DoUnBinFit(), DoUnBinFitVec(), HFit::Fit(), ROOT::Math::GeneticMinimizer::GetGeneticOptions(), TFitEditor::RetrieveOptions(), and ROOT::Math::Minimizer::SetTolerance().
|
inline |
strategy
Definition at line 94 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), and ROOT::Math::Minimizer::Strategy().
|
inline |
absolute tolerance
Definition at line 97 of file MinimizerOptions.h.
Referenced by ROOT::Fit::FitConfig::CreateMinimizer(), ROOT::Math::GeneticMinimizer::SetOptions(), and ROOT::Math::Minimizer::Tolerance().
|
private |
Definition at line 161 of file MinimizerOptions.h.
Referenced by MinimizerAlgorithm(), operator=(), Print(), ResetToDefaultOptions(), and SetMinimizerAlgorithm().
|
private |
Definition at line 157 of file MinimizerOptions.h.
Referenced by ErrorDef(), operator=(), Print(), ResetToDefaultOptions(), and SetErrorDef().
|
private |
Definition at line 164 of file MinimizerOptions.h.
Referenced by ExtraOptions(), operator=(), ResetToDefaultOptions(), SetExtraOptions(), and ~MinimizerOptions().
|
private |
Definition at line 153 of file MinimizerOptions.h.
Referenced by operator=(), Print(), PrintLevel(), ResetToDefaultOptions(), and SetPrintLevel().
|
private |
Definition at line 154 of file MinimizerOptions.h.
Referenced by MaxFunctionCalls(), operator=(), Print(), ResetToDefaultOptions(), and SetMaxFunctionCalls().
|
private |
Definition at line 155 of file MinimizerOptions.h.
Referenced by MaxIterations(), operator=(), Print(), ResetToDefaultOptions(), and SetMaxIterations().
|
private |
Definition at line 160 of file MinimizerOptions.h.
Referenced by MinimizerType(), operator=(), Print(), ResetToDefaultOptions(), and SetMinimizerType().
|
private |
Definition at line 159 of file MinimizerOptions.h.
Referenced by operator=(), Precision(), Print(), ResetToDefaultOptions(), and SetPrecision().
|
private |
Definition at line 156 of file MinimizerOptions.h.
Referenced by operator=(), Print(), ResetToDefaultOptions(), SetStrategy(), and Strategy().
|
private |
Definition at line 158 of file MinimizerOptions.h.
Referenced by operator=(), Print(), ResetToDefaultOptions(), SetTolerance(), and Tolerance().