ROOT
6.06/09
Reference Guide
|
Interface for finding function roots of one-dimensional functions.
Definition at line 38 of file IRootFinderMethod.h.
Public Member Functions | |
virtual | ~IRootFinderMethod () |
Default Destructor. More... | |
IRootFinderMethod () | |
Default Constructor. More... | |
virtual bool | SetFunction (const ROOT::Math::IGradFunction &, double) |
Sets the function for algorithms using derivatives. More... | |
virtual bool | SetFunction (const ROOT::Math::IGenFunction &, double, double) |
Sets the function for the rest of the algorithms. More... | |
virtual double | Root () const =0 |
Returns the previously calculated root. More... | |
virtual int | Status () const =0 |
Returns the status of the previous estimate. More... | |
virtual bool | Solve (int maxIter=100, double absTol=1E-8, double relTol=1E-10)=0 |
Stimates the root for the function. More... | |
virtual const char * | Name () const =0 |
Return name of root finder algorithm. More... | |
virtual int | Iterate () |
This method is implemented only by the GSLRootFinder and GSLRootFinderDeriv classes and will return an error if it's not one of them. More... | |
virtual int | Iterations () const |
Return number of iterations used to find the root Must be implemented by derived classes. More... | |
#include <Math/IRootFinderMethod.h>
|
inlinevirtual |
Default Destructor.
Definition at line 41 of file IRootFinderMethod.h.
|
inline |
Default Constructor.
Definition at line 44 of file IRootFinderMethod.h.
|
inlinevirtual |
This method is implemented only by the GSLRootFinder and GSLRootFinderDeriv classes and will return an error if it's not one of them.
Reimplemented in ROOT::Math::GSLRootFinderDeriv, and ROOT::Math::GSLRootFinder.
Definition at line 83 of file IRootFinderMethod.h.
Referenced by ROOT::Math::RootFinder::Iterate().
|
inlinevirtual |
Return number of iterations used to find the root Must be implemented by derived classes.
Reimplemented in ROOT::Math::GSLRootFinderDeriv, ROOT::Math::GSLRootFinder, and ROOT::Math::BrentRootFinder.
Definition at line 91 of file IRootFinderMethod.h.
Referenced by ROOT::Math::RootFinder::Iterations().
|
pure virtual |
Return name of root finder algorithm.
Implemented in ROOT::Math::GSLRootFinderDeriv, ROOT::Math::GSLRootFinder, and ROOT::Math::BrentRootFinder.
Referenced by ROOT::Math::RootFinder::Name().
|
pure virtual |
Returns the previously calculated root.
Implemented in ROOT::Math::GSLRootFinderDeriv, ROOT::Math::BrentRootFinder, and ROOT::Math::GSLRootFinder.
Referenced by ROOT::Math::RootFinder::Root().
|
inlinevirtual |
Sets the function for algorithms using derivatives.
Reimplemented in ROOT::Math::GSLRootFinderDeriv.
Definition at line 49 of file IRootFinderMethod.h.
Referenced by ROOT::Math::RootFinder::SetFunction(), and ROOT::Math::RootFinder::Solve().
|
inlinevirtual |
Sets the function for the rest of the algorithms.
The parameters set the interval where the root has to be calculated.
Reimplemented in ROOT::Math::GSLRootFinder, and ROOT::Math::BrentRootFinder.
Definition at line 57 of file IRootFinderMethod.h.
|
pure virtual |
Stimates the root for the function.
@param maxIter maximum number of iterations. @param absTol desired absolute error in the minimum position. @param absTol desired relative error in the minimum position.
Implemented in ROOT::Math::GSLRootFinderDeriv, ROOT::Math::GSLRootFinder, and ROOT::Math::BrentRootFinder.
Referenced by ROOT::Math::RootFinder::Solve().
|
pure virtual |
Returns the status of the previous estimate.
Implemented in ROOT::Math::GSLRootFinderDeriv, ROOT::Math::GSLRootFinder, and ROOT::Math::BrentRootFinder.
Referenced by ROOT::Math::RootFinder::Status().