BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
ROOT::Minuit2::NegativeG2LineSearch Class Reference

Description

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
 

Constructor & Destructor Documentation

◆ NegativeG2LineSearch()

ROOT::Minuit2::NegativeG2LineSearch::NegativeG2LineSearch ( )
inline

Definition at line 34 of file NegativeG2LineSearch.h.

34 {}

◆ ~NegativeG2LineSearch()

ROOT::Minuit2::NegativeG2LineSearch::~NegativeG2LineSearch ( )
inline

Definition at line 36 of file NegativeG2LineSearch.h.

36 {}

Member Function Documentation

◆ HasNegativeG2()

bool ROOT::Minuit2::NegativeG2LineSearch::HasNegativeG2 ( const FunctionGradient ,
const MnMachinePrecision  
) const

◆ operator()()

MinimumState ROOT::Minuit2::NegativeG2LineSearch::operator() ( const MnFcn ,
const MinimumState ,
const GradientCalculator ,
const MnMachinePrecision  
) const

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