ROOT
6.06/09
Reference Guide
|
application interface class for minimizers (migrad, simplex, Minimize, Scan) User normally instantiates the derived class like ROOT::Minuit2::MnMigrad for using Migrad for minimization
Definition at line 37 of file MnApplication.h.
Public Member Functions | |
MnApplication (const FCNBase &fcn, const MnUserParameterState &state, const MnStrategy &stra, unsigned int nfcn=0) | |
constructor from non-gradient functions More... | |
MnApplication (const FCNGradientBase &fcn, const MnUserParameterState &state, const MnStrategy &stra, unsigned int nfcn=0) | |
constructor from gradient function More... | |
virtual | ~MnApplication () |
virtual FunctionMinimum | operator() (unsigned int maxfcn=0, double tolerance=0.1) |
Minimize the function. More... | |
virtual const ModularFunctionMinimizer & | Minimizer () const =0 |
const MnMachinePrecision & | Precision () const |
const MnUserParameterState & | State () const |
const MnUserParameters & | Parameters () const |
const MnUserCovariance & | Covariance () const |
virtual const FCNBase & | Fcnbase () const |
const MnStrategy & | Strategy () const |
unsigned int | NumOfCalls () const |
const std::vector< ROOT::Minuit2::MinuitParameter > & | MinuitParameters () const |
std::vector< double > | Params () const |
std::vector< double > | Errors () const |
const MinuitParameter & | Parameter (unsigned int i) const |
void | Add (const char *Name, double val, double err) |
void | Add (const char *Name, double val, double err, double, double) |
void | Add (const char *, double) |
void | Fix (unsigned int) |
void | Release (unsigned int) |
void | SetValue (unsigned int, double) |
void | SetError (unsigned int, double) |
void | SetLimits (unsigned int, double, double) |
void | RemoveLimits (unsigned int) |
double | Value (unsigned int) const |
double | Error (unsigned int) const |
void | Fix (const char *) |
void | Release (const char *) |
void | SetValue (const char *, double) |
void | SetError (const char *, double) |
void | SetLimits (const char *, double, double) |
void | RemoveLimits (const char *) |
void | SetPrecision (double) |
double | Value (const char *) const |
double | Error (const char *) const |
unsigned int | Index (const char *) const |
const char * | Name (unsigned int) const |
double | Int2ext (unsigned int, double) const |
double | Ext2int (unsigned int, double) const |
unsigned int | IntOfExt (unsigned int) const |
unsigned int | ExtOfInt (unsigned int) const |
unsigned int | VariableParameters () const |
Protected Attributes | |
const FCNBase & | fFCN |
MnUserParameterState | fState |
MnStrategy | fStrategy |
unsigned int | fNumCall |
bool | fUseGrad |
#include <Minuit2/MnApplication.h>
ROOT::Minuit2::MnApplication::MnApplication | ( | const FCNBase & | fcn, |
const MnUserParameterState & | state, | ||
const MnStrategy & | stra, | ||
unsigned int | nfcn = 0 |
||
) |
constructor from non-gradient functions
Definition at line 26 of file MnApplication.cxx.
ROOT::Minuit2::MnApplication::MnApplication | ( | const FCNGradientBase & | fcn, |
const MnUserParameterState & | state, | ||
const MnStrategy & | stra, | ||
unsigned int | nfcn = 0 |
||
) |
constructor from gradient function
Definition at line 31 of file MnApplication.cxx.
|
inlinevirtual |
Definition at line 48 of file MnApplication.h.
Definition at line 107 of file MnApplication.cxx.
void ROOT::Minuit2::MnApplication::Add | ( | const char * | Name, |
double | val, | ||
double | err, | ||
double | low, | ||
double | up | ||
) |
Definition at line 112 of file MnApplication.cxx.
Definition at line 117 of file MnApplication.cxx.
|
inline |
Definition at line 66 of file MnApplication.h.
double ROOT::Minuit2::MnApplication::Error | ( | unsigned int | i | ) | const |
Definition at line 140 of file MnApplication.cxx.
double ROOT::Minuit2::MnApplication::Error | ( | const char * | i | ) | const |
Definition at line 152 of file MnApplication.cxx.
std::vector< double > ROOT::Minuit2::MnApplication::Errors | ( | ) | const |
Definition at line 98 of file MnApplication.cxx.
Definition at line 170 of file MnApplication.cxx.
unsigned int ROOT::Minuit2::MnApplication::ExtOfInt | ( | unsigned int | internal | ) | const |
Definition at line 178 of file MnApplication.cxx.
|
inlinevirtual |
Reimplemented in ROOT::Minuit2::MnFumiliMinimize.
Definition at line 67 of file MnApplication.h.
Referenced by operator()().
void ROOT::Minuit2::MnApplication::Fix | ( | unsigned int | i | ) |
Definition at line 123 of file MnApplication.cxx.
Referenced by ROOT::Minuit2::MnContours::Contour(), and main().
void ROOT::Minuit2::MnApplication::Fix | ( | const char * | i | ) |
Definition at line 143 of file MnApplication.cxx.
unsigned int ROOT::Minuit2::MnApplication::Index | ( | const char * | name | ) | const |
Definition at line 155 of file MnApplication.cxx.
Definition at line 166 of file MnApplication.cxx.
unsigned int ROOT::Minuit2::MnApplication::IntOfExt | ( | unsigned int | ext | ) | const |
Definition at line 174 of file MnApplication.cxx.
|
pure virtual |
Implemented in ROOT::Minuit2::MnMigrad, ROOT::Minuit2::MnMinimize, ROOT::Minuit2::MnFumiliMinimize, ROOT::Minuit2::MnSimplex, and ROOT::Minuit2::MnScan.
Referenced by operator()().
const std::vector< MinuitParameter > & ROOT::Minuit2::MnApplication::MinuitParameters | ( | ) | const |
Definition at line 92 of file MnApplication.cxx.
const char * ROOT::Minuit2::MnApplication::Name | ( | unsigned int | i | ) | const |
Definition at line 160 of file MnApplication.cxx.
|
inline |
Definition at line 69 of file MnApplication.h.
|
virtual |
Minimize the function.
maxfcn | : max number of function calls (if = 0) default is used which is set to 200 + 100 * npar + 5 * npar**2 |
tolerance | : value used for terminating iteration procedure. For example, MIGRAD will stop iterating when edm (expected distance from minimum) will be: edm < tolerance * 10**-3 Default value of tolerance used is 0.1 |
Reimplemented in ROOT::Minuit2::MnFumiliMinimize.
Definition at line 36 of file MnApplication.cxx.
const MinuitParameter & ROOT::Minuit2::MnApplication::Parameter | ( | unsigned int | i | ) | const |
Definition at line 101 of file MnApplication.cxx.
|
inline |
Definition at line 65 of file MnApplication.h.
Referenced by main().
std::vector< double > ROOT::Minuit2::MnApplication::Params | ( | ) | const |
Definition at line 97 of file MnApplication.cxx.
|
inline |
Definition at line 63 of file MnApplication.h.
void ROOT::Minuit2::MnApplication::Release | ( | unsigned int | i | ) |
Definition at line 124 of file MnApplication.cxx.
Referenced by main().
void ROOT::Minuit2::MnApplication::Release | ( | const char * | i | ) |
Definition at line 144 of file MnApplication.cxx.
void ROOT::Minuit2::MnApplication::RemoveLimits | ( | unsigned int | i | ) |
Definition at line 137 of file MnApplication.cxx.
Referenced by main().
void ROOT::Minuit2::MnApplication::RemoveLimits | ( | const char * | i | ) |
Definition at line 148 of file MnApplication.cxx.
Definition at line 129 of file MnApplication.cxx.
Definition at line 146 of file MnApplication.cxx.
Definition at line 133 of file MnApplication.cxx.
Definition at line 147 of file MnApplication.cxx.
Definition at line 149 of file MnApplication.cxx.
Definition at line 125 of file MnApplication.cxx.
Referenced by ROOT::Minuit2::MnContours::Contour(), and ROOT::Minuit2::MnFunctionCross::operator()().
Definition at line 145 of file MnApplication.cxx.
|
inline |
Definition at line 64 of file MnApplication.h.
|
inline |
Definition at line 68 of file MnApplication.h.
double ROOT::Minuit2::MnApplication::Value | ( | unsigned int | i | ) | const |
Definition at line 139 of file MnApplication.cxx.
double ROOT::Minuit2::MnApplication::Value | ( | const char * | i | ) | const |
Definition at line 151 of file MnApplication.cxx.
unsigned int ROOT::Minuit2::MnApplication::VariableParameters | ( | ) | const |
Definition at line 182 of file MnApplication.cxx.
Referenced by operator()(), and ROOT::Minuit2::MnFumiliMinimize::operator()().
|
protected |
Definition at line 73 of file MnApplication.h.
Referenced by Fcnbase(), and ROOT::Minuit2::MnScan::Scan().
|
protected |
Definition at line 76 of file MnApplication.h.
Referenced by NumOfCalls(), operator()(), and ROOT::Minuit2::MnFumiliMinimize::operator()().
|
protected |
Definition at line 74 of file MnApplication.h.
Referenced by Add(), Covariance(), Error(), Errors(), Ext2int(), ExtOfInt(), Fix(), Index(), Int2ext(), IntOfExt(), MinuitParameters(), Name(), operator()(), ROOT::Minuit2::MnFumiliMinimize::operator()(), Parameter(), Parameters(), Params(), Precision(), Release(), RemoveLimits(), ROOT::Minuit2::MnScan::Scan(), SetError(), SetLimits(), SetPrecision(), SetValue(), State(), Value(), and VariableParameters().
|
protected |
Definition at line 75 of file MnApplication.h.
Referenced by operator()(), ROOT::Minuit2::MnFumiliMinimize::operator()(), and Strategy().
|
protected |
Definition at line 77 of file MnApplication.h.
Referenced by operator()().