BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
In case that one of the components of the second derivative g2 calculated by the numerical Gradient calculator is negative, a 1dim line search in the direction of that component is done in order to find a better position where g2 is again positive.
Definition at line 30 of file NegativeG2LineSearch.h.
Public Member Functions | |
NegativeG2LineSearch () | |
~NegativeG2LineSearch () | |
bool | HasNegativeG2 (const FunctionGradient &, const MnMachinePrecision &) const |
MinimumState | operator() (const MnFcn &, const MinimumState &, const GradientCalculator &, const MnMachinePrecision &) const |
|
inline |
Definition at line 34 of file NegativeG2LineSearch.h.
|
inline |
Definition at line 36 of file NegativeG2LineSearch.h.
bool ROOT::Minuit2::NegativeG2LineSearch::HasNegativeG2 | ( | const FunctionGradient & | , |
const MnMachinePrecision & | |||
) | const |
MinimumState ROOT::Minuit2::NegativeG2LineSearch::operator() | ( | const MnFcn & | , |
const MinimumState & | , | ||
const GradientCalculator & | , | ||
const MnMachinePrecision & | |||
) | const |