Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Minuit2::MnApplication Class Referenceabstract

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
 
 MnApplication (const FCNGradientBase &fcn, const MnUserParameterState &state, const MnStrategy &stra, unsigned int nfcn=0)
 constructor from gradient function
 
virtual ~MnApplication ()
 
void Add (const char *, double)
 
void Add (const char *Name, double val, double err)
 
void Add (const char *Name, double val, double err, double, double)
 
const MnUserCovarianceCovariance () const
 
double Error (const char *) const
 
double Error (unsigned int) const
 
std::vector< doubleErrors () const
 
double Ext2int (unsigned int, double) const
 
unsigned int ExtOfInt (unsigned int) const
 
virtual const FCNBaseFcnbase () const
 
void Fix (const char *)
 
void Fix (unsigned int)
 
unsigned int Index (const char *) const
 
double Int2ext (unsigned int, double) const
 
unsigned int IntOfExt (unsigned int) const
 
virtual const ModularFunctionMinimizerMinimizer () const =0
 
virtual ModularFunctionMinimizerMinimizer ()=0
 
const std::vector< ROOT::Minuit2::MinuitParameter > & MinuitParameters () const
 
const char * Name (unsigned int) const
 
unsigned int NumOfCalls () const
 
virtual FunctionMinimum operator() (unsigned int maxfcn=0, double tolerance=0.1)
 Minimize the function.
 
const MinuitParameterParameter (unsigned int i) const
 
const MnUserParametersParameters () const
 
std::vector< doubleParams () const
 
const MnMachinePrecisionPrecision () const
 
void Release (const char *)
 
void Release (unsigned int)
 
void RemoveLimits (const char *)
 
void RemoveLimits (unsigned int)
 
void SetError (const char *, double)
 
void SetError (unsigned int, double)
 
void SetLimits (const char *, double, double)
 
void SetLimits (unsigned int, double, double)
 
void SetPrecision (double)
 
void SetValue (const char *, double)
 
void SetValue (unsigned int, double)
 
const MnUserParameterStateState () const
 
const MnStrategyStrategy () const
 
double Value (const char *) const
 
double Value (unsigned int) const
 
unsigned int VariableParameters () const
 

Protected Attributes

const FCNBasefFCN
 
unsigned int fNumCall
 
MnUserParameterState fState
 
MnStrategy fStrategy
 
bool fUseGrad
 

#include <Minuit2/MnApplication.h>

Inheritance diagram for ROOT::Minuit2::MnApplication:
[legend]

Constructor & Destructor Documentation

◆ MnApplication() [1/2]

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 21 of file MnApplication.cxx.

◆ MnApplication() [2/2]

ROOT::Minuit2::MnApplication::MnApplication ( const FCNGradientBase fcn,
const MnUserParameterState state,
const MnStrategy stra,
unsigned int  nfcn = 0 
)

constructor from gradient function

Definition at line 28 of file MnApplication.cxx.

◆ ~MnApplication()

virtual ROOT::Minuit2::MnApplication::~MnApplication ( )
inlinevirtual

Definition at line 47 of file MnApplication.h.

Member Function Documentation

◆ Add() [1/3]

void ROOT::Minuit2::MnApplication::Add ( const char *  name,
double  val 
)

Definition at line 111 of file MnApplication.cxx.

◆ Add() [2/3]

void ROOT::Minuit2::MnApplication::Add ( const char *  Name,
double  val,
double  err 
)

Definition at line 99 of file MnApplication.cxx.

◆ Add() [3/3]

void ROOT::Minuit2::MnApplication::Add ( const char *  Name,
double  val,
double  err,
double  low,
double  up 
)

Definition at line 105 of file MnApplication.cxx.

◆ Covariance()

const MnUserCovariance & ROOT::Minuit2::MnApplication::Covariance ( ) const
inline

Definition at line 66 of file MnApplication.h.

◆ Error() [1/2]

double ROOT::Minuit2::MnApplication::Error ( const char *  i) const

Definition at line 189 of file MnApplication.cxx.

◆ Error() [2/2]

double ROOT::Minuit2::MnApplication::Error ( unsigned int  i) const

Definition at line 150 of file MnApplication.cxx.

◆ Errors()

std::vector< double > ROOT::Minuit2::MnApplication::Errors ( ) const

Definition at line 88 of file MnApplication.cxx.

◆ Ext2int()

double ROOT::Minuit2::MnApplication::Ext2int ( unsigned int  e,
double  val 
) const

Definition at line 211 of file MnApplication.cxx.

◆ ExtOfInt()

unsigned int ROOT::Minuit2::MnApplication::ExtOfInt ( unsigned int  internal) const

Definition at line 221 of file MnApplication.cxx.

◆ Fcnbase()

virtual const FCNBase & ROOT::Minuit2::MnApplication::Fcnbase ( ) const
inlinevirtual

Reimplemented in ROOT::Minuit2::MnFumiliMinimize.

Definition at line 67 of file MnApplication.h.

◆ Fix() [1/2]

void ROOT::Minuit2::MnApplication::Fix ( const char *  i)

Definition at line 156 of file MnApplication.cxx.

◆ Fix() [2/2]

void ROOT::Minuit2::MnApplication::Fix ( unsigned int  i)

Definition at line 118 of file MnApplication.cxx.

◆ Index()

unsigned int ROOT::Minuit2::MnApplication::Index ( const char *  name) const

Definition at line 194 of file MnApplication.cxx.

◆ Int2ext()

double ROOT::Minuit2::MnApplication::Int2ext ( unsigned int  i,
double  val 
) const

Definition at line 206 of file MnApplication.cxx.

◆ IntOfExt()

unsigned int ROOT::Minuit2::MnApplication::IntOfExt ( unsigned int  ext) const

Definition at line 216 of file MnApplication.cxx.

◆ Minimizer() [1/2]

virtual const ModularFunctionMinimizer & ROOT::Minuit2::MnApplication::Minimizer ( ) const
pure virtual

◆ Minimizer() [2/2]

◆ MinuitParameters()

const std::vector< MinuitParameter > & ROOT::Minuit2::MnApplication::MinuitParameters ( ) const

Definition at line 78 of file MnApplication.cxx.

◆ Name()

const char * ROOT::Minuit2::MnApplication::Name ( unsigned int  i) const

Definition at line 200 of file MnApplication.cxx.

◆ NumOfCalls()

unsigned int ROOT::Minuit2::MnApplication::NumOfCalls ( ) const
inline

Definition at line 69 of file MnApplication.h.

◆ operator()()

FunctionMinimum ROOT::Minuit2::MnApplication::operator() ( unsigned int  maxfcn = 0,
double  tolerance = 0.1 
)
virtual

Minimize the function.

Parameters
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 34 of file MnApplication.cxx.

◆ Parameter()

const MinuitParameter & ROOT::Minuit2::MnApplication::Parameter ( unsigned int  i) const

Definition at line 93 of file MnApplication.cxx.

◆ Parameters()

const MnUserParameters & ROOT::Minuit2::MnApplication::Parameters ( ) const
inline

Definition at line 65 of file MnApplication.h.

◆ Params()

std::vector< double > ROOT::Minuit2::MnApplication::Params ( ) const

Definition at line 84 of file MnApplication.cxx.

◆ Precision()

const MnMachinePrecision & ROOT::Minuit2::MnApplication::Precision ( ) const
inline

Definition at line 63 of file MnApplication.h.

◆ Release() [1/2]

void ROOT::Minuit2::MnApplication::Release ( const char *  i)

Definition at line 160 of file MnApplication.cxx.

◆ Release() [2/2]

void ROOT::Minuit2::MnApplication::Release ( unsigned int  i)

Definition at line 122 of file MnApplication.cxx.

◆ RemoveLimits() [1/2]

void ROOT::Minuit2::MnApplication::RemoveLimits ( const char *  i)

Definition at line 176 of file MnApplication.cxx.

◆ RemoveLimits() [2/2]

void ROOT::Minuit2::MnApplication::RemoveLimits ( unsigned int  i)

Definition at line 141 of file MnApplication.cxx.

◆ SetError() [1/2]

void ROOT::Minuit2::MnApplication::SetError ( const char *  i,
double  val 
)

Definition at line 168 of file MnApplication.cxx.

◆ SetError() [2/2]

void ROOT::Minuit2::MnApplication::SetError ( unsigned int  i,
double  val 
)

Definition at line 131 of file MnApplication.cxx.

◆ SetLimits() [1/2]

void ROOT::Minuit2::MnApplication::SetLimits ( const char *  i,
double  low,
double  up 
)

Definition at line 172 of file MnApplication.cxx.

◆ SetLimits() [2/2]

void ROOT::Minuit2::MnApplication::SetLimits ( unsigned int  i,
double  low,
double  up 
)

Definition at line 136 of file MnApplication.cxx.

◆ SetPrecision()

void ROOT::Minuit2::MnApplication::SetPrecision ( double  eps)

Definition at line 180 of file MnApplication.cxx.

◆ SetValue() [1/2]

void ROOT::Minuit2::MnApplication::SetValue ( const char *  i,
double  val 
)

Definition at line 164 of file MnApplication.cxx.

◆ SetValue() [2/2]

void ROOT::Minuit2::MnApplication::SetValue ( unsigned int  i,
double  val 
)

Definition at line 126 of file MnApplication.cxx.

◆ State()

const MnUserParameterState & ROOT::Minuit2::MnApplication::State ( ) const
inline

Definition at line 64 of file MnApplication.h.

◆ Strategy()

const MnStrategy & ROOT::Minuit2::MnApplication::Strategy ( ) const
inline

Definition at line 68 of file MnApplication.h.

◆ Value() [1/2]

double ROOT::Minuit2::MnApplication::Value ( const char *  i) const

Definition at line 185 of file MnApplication.cxx.

◆ Value() [2/2]

double ROOT::Minuit2::MnApplication::Value ( unsigned int  i) const

Definition at line 146 of file MnApplication.cxx.

◆ VariableParameters()

unsigned int ROOT::Minuit2::MnApplication::VariableParameters ( ) const

Definition at line 226 of file MnApplication.cxx.

Member Data Documentation

◆ fFCN

const FCNBase& ROOT::Minuit2::MnApplication::fFCN
protected

Definition at line 72 of file MnApplication.h.

◆ fNumCall

unsigned int ROOT::Minuit2::MnApplication::fNumCall
protected

Definition at line 75 of file MnApplication.h.

◆ fState

MnUserParameterState ROOT::Minuit2::MnApplication::fState
protected

Definition at line 73 of file MnApplication.h.

◆ fStrategy

MnStrategy ROOT::Minuit2::MnApplication::fStrategy
protected

Definition at line 74 of file MnApplication.h.

◆ fUseGrad

bool ROOT::Minuit2::MnApplication::fUseGrad
protected

Definition at line 76 of file MnApplication.h.

Libraries for ROOT::Minuit2::MnApplication:

The documentation for this class was generated from the following files: