ROOT  6.06/09
Reference Guide
InitialGradientCalculator.h
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7  * *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_InitialGradientCalculator
11 #define ROOT_Minuit2_InitialGradientCalculator
12 
14 
15 namespace ROOT {
16 
17  namespace Minuit2 {
18 
19 
20 class MnFcn;
21 class MnUserTransformation;
22 class MnMachinePrecision;
23 class MnStrategy;
24 
25 /**
26  Class to calculate an initial estimate of the gradient
27  */
29 
30 public:
31 
33  const MnStrategy& stra) :
34  fFcn(fcn), fTransformation(par), fStrategy(stra) {};
35 
37 
38  virtual FunctionGradient operator()(const MinimumParameters&) const;
39 
41  const FunctionGradient&) const;
42 
43  const MnFcn& Fcn() const {return fFcn;}
44  const MnUserTransformation& Trafo() const {return fTransformation;}
45  const MnMachinePrecision& Precision() const;
46  const MnStrategy& Strategy() const {return fStrategy;}
47 
48  unsigned int Ncycle() const;
49  double StepTolerance() const;
50  double GradTolerance() const;
51 
52 private:
53 
54  const MnFcn& fFcn;
57 };
58 
59  } // namespace Minuit2
60 
61 } // namespace ROOT
62 
63 #endif // ROOT_Minuit2_InitialGradientCalculator
double par[1]
Definition: unuranDistr.cxx:38
InitialGradientCalculator(const MnFcn &fcn, const MnUserTransformation &par, const MnStrategy &stra)
Namespace for new ROOT classes and functions.
Definition: ROOT.py:1
virtual FunctionGradient operator()(const MinimumParameters &) const
const MnUserTransformation & Trafo() const
determines the relative floating point arithmetic precision.
Wrapper class to FCNBase interface used internally by Minuit.
Definition: MnFcn.h:33
Class to calculate an initial estimate of the gradient.
class dealing with the transformation between user specified parameters (external) and internal param...
const MnMachinePrecision & Precision() const
API class for defining three levels of strategies: low (0), medium (1), high (>=2); acts on: Migrad (...
Definition: MnStrategy.h:27
interface class for gradient calculators