20 #ifndef MIRTK_BrentLineSearch_H 21 #define MIRTK_BrentLineSearch_H 23 #include "mirtk/InexactLineSearch.h" 43 static const double _MinificationRatio;
44 static const double _MagnificationRatio;
45 static const double _MaxMagnificationRatio;
51 mirtkPublicAttributeMacro(
double, Tolerance);
77 virtual bool Set(
const char *,
const char *);
104 double BracketExtremum(
double &a,
double &b,
double &c,
double *delta = NULL);
111 #endif // MIRTK_BrentLineSearch_H BrentLineSearch & operator=(const BrentLineSearch &)
Assignment operator.
double BracketExtremum(double &a, double &b, double &c, double *delta=NULL)
virtual ParameterList Parameter() const
Get parameters as key/value as string map.
virtual ParameterList Parameter() const
Get parameters as key/value as string map.
virtual ~BrentLineSearch()
Destructor.
Array< Pair< string, string > > ParameterList
Ordered list of parameter name/value pairs.
Numerical recipes linmin function using Brent's method.
virtual bool Set(const char *, const char *)
Set parameter value from string.
virtual double Run()
Make optimal step along search direction.
BrentLineSearch(ObjectiveFunction *=NULL)
Constructor.