Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
NegativeG2LineSearch.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_NegativeG2LineSearch
11#define ROOT_Minuit2_NegativeG2LineSearch
12
13namespace ROOT {
14
15namespace Minuit2 {
16
17class MnFcn;
18class MinimumState;
19class GradientCalculator;
20class MnMachinePrecision;
21class FunctionGradient;
22
23/** In case that one of the components of the second derivative g2 calculated
24 by the numerical Gradient calculator is negative, a 1dim line search in
25 the direction of that component is done in order to find a better position
26 where g2 is again positive.
27 */
28
30
31public:
33
35
37 operator()(const MnFcn &, const MinimumState &, const GradientCalculator &, const MnMachinePrecision &) const;
38
39 bool HasNegativeG2(const FunctionGradient &, const MnMachinePrecision &) const;
40
41private:
42};
43
44} // namespace Minuit2
45
46} // namespace ROOT
47
48#endif // ROOT_Minuit2_NegativeG2LineSearch
interface class for gradient calculators
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
Wrapper class to FCNBase interface used internally by Minuit.
Definition MnFcn.h:30
Sets the relative floating point (double) arithmetic precision.
In case that one of the components of the second derivative g2 calculated by the numerical Gradient c...
bool HasNegativeG2(const FunctionGradient &, const MnMachinePrecision &) const
MinimumState operator()(const MnFcn &, const MinimumState &, const GradientCalculator &, const MnMachinePrecision &) const
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.