1 #ifndef ROOT_Math_BrentMethods 2 #define ROOT_Math_BrentMethods 4 #ifndef ROOT_Math_IFunctionfwd 12 namespace BrentMethods {
47 double MinimBrent(
const IGenFunction* f,
int type,
double &xmin,
double &xmax,
double xmiddle,
double fy,
bool &ok,
int &niter,
double epsabs = 1.
E-8,
double epsrel = 1.
E-10,
int maxiter = 100 );
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
double MinimStep(const IGenFunction *f, int type, double &xmin, double &xmax, double fy, int npx=100, bool useLog=false)
Grid search implementation, used to bracket the minimum and later use Brent's method with the bracket...
double MinimBrent(const IGenFunction *f, int type, double &xmin, double &xmax, double xmiddle, double fy, bool &ok, int &niter, double epsabs=1.E-8, double epsrel=1.E-10, int maxiter=100)
Finds a minimum of a function, if the function is unimodal between xmin and xmax This method uses a c...
Namespace for new Math classes and functions.