31 #ifndef ROOT_Math_BrentMinimizer1D 32 #define ROOT_Math_BrentMinimizer1D 110 virtual bool Minimize(
int maxIter,
double absTol = 1.
E-8,
double relTol = 1.
E-10);
116 virtual const char *
Name()
const;
virtual ~BrentMinimizer1D()
Default Destructor.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
int Status() const
Returns status of last estimate.
virtual double XUpper() const
Return current upper bound of the minimization interval.
Namespace for new ROOT classes and functions.
void SetLogScan(bool on)
Set a log grid scan (default is equidistant bins) will work only if xlow > 0.
static void SetDefaultNSearch(int n)
set number of times the bracketing search in combination with is done to find a good interval Default...
const IGenFunction * fFunction
User class for performing function minimization.
virtual double FValUpper() const
Return function value at current upper bound of the minimization interval.
virtual double FValLower() const
Return function value at current lower bound of the minimization interval.
virtual const char * Name() const
Return name of minimization algorithm ("BrentMinimizer1D")
void SetFunction(const ROOT::Math::IGenFunction &f, double xlow, double xup)
Sets function to be minimized.
virtual double XLower() const
Return current lower bound of the minimization interval.
constexpr Double_t E()
Base of natural log: .
virtual double FValMinimum() const
Return function value at current estimate of the minimum.
Interface class for numerical methods for one-dimensional minimization.
Namespace for new Math classes and functions.
virtual double XMinimum() const
Return current estimate of the position of the minimum.
static void SetDefaultNpx(int npx)
set number of default Npx used at construction time (when SetNpx is not called) Default value is 100 ...
virtual int Iterations() const
Return number of iteration used to find minimum.
void SetNpx(int npx)
Set the number of point used to bracket root using a grid.
virtual bool Minimize(int maxIter, double absTol=1.E-8, double relTol=1.E-10)
Find minimum position iterating until convergence specified by the absolute and relative tolerance or...
BrentMinimizer1D()
Default Constructor.