BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
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 
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
InitialGradientCalculator(const MnFcn &fcn, const MnUserTransformation &par, const MnStrategy &stra)
virtual FunctionGradient operator()(const MinimumParameters &, const FunctionGradient &) const
const MnMachinePrecision & Precision() const
const MnUserTransformation & Trafo() const
virtual FunctionGradient operator()(const MinimumParameters &) const
Definition: TUUID.h:7