31 #ifndef ROOT_Math_BrentMinimizer1D
32 #define ROOT_Math_BrentMinimizer1D
34 #ifndef ROOT_Math_IMinimizer1D
38 #ifndef ROOT_Math_IFunctionfwd
114 virtual bool Minimize(
int maxIter,
double absTol = 1.
E-8,
double relTol = 1.
E-10);
120 virtual const char *
Name()
const;
virtual ~BrentMinimizer1D()
Default Destructor.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
virtual double FValUpper() const
Return function value at current upper bound of the minimization interval.
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...
virtual double XUpper() const
Return current upper bound of the minimization interval.
const IGenFunction * fFunction
User class for performing function minimization.
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 XMinimum() const
Return current estimate of the position of the minimum.
int Status() const
Returns status of last estimate.
Interface class for numerical methods for one-dimensional minimization.
static void SetDefaultNpx(int npx)
set number of default Npx used at construction time (when SetNpx is not called) Default value is 100 ...
virtual double FValMinimum() const
Return function value at current estimate of the 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.
virtual double XLower() const
Return current lower bound of the minimization interval.
virtual int Iterations() const
Return number of iteration used to find minimum.