31#ifndef ROOT_Math_BrentMinimizer1D
32#define ROOT_Math_BrentMinimizer1D
110 bool Minimize(
int maxIter,
double absTol = 1.E-8,
double relTol = 1.E-10)
override;
116 const char *
Name()
const override;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
User class for performing function minimization.
const IGenFunction * fFunction
Pointer to the function.
double XUpper() const override
Return current upper bound of the minimization interval.
static void SetDefaultNSearch(int n)
set number of times the bracketing search in combination with is done to find a good interval Default...
double FValLower() const override
Return function value at current lower bound of the minimization interval.
int Status() const override
Returns status of last estimate.
double fXMax
Upper bound of the search interval.
double FValUpper() const override
Return function value at current upper bound of the minimization interval.
int fNpx
Number of points to bracket minimum with grid (def is 100)
double fXMin
Lower bound of the search interval.
void SetFunction(const ROOT::Math::IGenFunction &f, double xlow, double xup)
Sets function to be minimized.
double XLower() const override
Return current lower bound of the minimization interval.
int fNIter
Number of iterations needed for the last estimation.
bool Minimize(int maxIter, double absTol=1.E-8, double relTol=1.E-10) override
Find minimum position iterating until convergence specified by the absolute and relative tolerance or...
static void SetDefaultNpx(int npx)
set number of default Npx used at construction time (when SetNpx is not called) Default value is 100
bool fLogScan
flag to control usage of a log scan
int fStatus
Status of code of the last estimate.
double fXMinimum
Position of the estimated minimum.
void SetNpx(int npx)
Set the number of point used to bracket root using a grid.
void SetLogScan(bool on)
Set a log grid scan (default is equidistant bins) will work only if xlow > 0.
BrentMinimizer1D()
Default Constructor.
const char * Name() const override
Return name of minimization algorithm ("BrentMinimizer1D")
double XMinimum() const override
Return current estimate of the position of the minimum.
int Iterations() const override
Return number of iteration used to find minimum.
double FValMinimum() const override
Return function value at current estimate of the minimum.
~BrentMinimizer1D() override
Default Destructor.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Interface class for numerical methods for one-dimensional minimization.
Namespace for new Math classes and functions.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.