30 #ifndef ROOT_Math_BrentRootFinder
31 #define ROOT_Math_BrentRootFinder
33 #ifndef ROOT_Math_IFunctionfwd
37 #ifndef ROOT_Math_IRootFinderMethod
101 bool Solve(
int maxIter = 100,
double absTol = 1
E-8,
double relTol = 1
E-10);
122 const char*
Name()
const;
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
bool Solve(int maxIter=100, double absTol=1E-8, double relTol=1E-10)
Returns the X value corresponding to the function value fy for (xmin<x<xmax).
int Status() const
Returns status of last estimate.
Interface for finding function roots of one-dimensional functions.
const IGenFunction * fFunction
const char * Name() const
Return name of root finder algorithm ("BrentRootFinder").
int Iterations() const
Return number of iteration used to find minimum.
double Root() const
Returns root value.
void SetLogScan(bool on)
Set a log grid scan (default is equidistant bins) will work only if xlow > 0.
Class for finding the root of a one dimensional function using the Brent algorithm.
BrentRootFinder()
Default Constructor.
virtual bool SetFunction(const ROOT::Math::IGradFunction &, double)
Sets the function for algorithms using derivatives.
static void SetDefaultNSearch(int n)
set number of times the bracketing search in combination with is done to find a good interval Default...
static void SetDefaultNpx(int npx)
set number of default Npx used at construction time (when SetNpx is not called) Default value is 100 ...
bool SetFunction(const ROOT::Math::IGenFunction &f, double xlow, double xup)
Sets the function for the rest of the algorithms.
void SetNpx(int npx)
Set the number of point used to bracket root using a grid.
virtual ~BrentRootFinder()
Default Destructor.