41 #ifndef BPP_NUMERIC_FUNCTION_BRENTONEDIMENSION_H
42 #define BPP_NUMERIC_FUNCTION_BRENTONEDIMENSION_H
91 double a,
b,
d,
e,
etemp,
fu,
fv,
fw,
fx,
p,
q,
r,
tol1,
tol2,
u,
v,
w,
x,
xm;
Partial implementation of the OptimizationStopCondition interface.
Partial implementation of the Optimizer interface.
virtual ~BODStopCondition()
double getCurrentTolerance() const
Get the current tolerance.
bool isToleranceReached() const
Tell if the we reached the desired tolerance with a given new set of estimates.
BODStopCondition(BrentOneDimension *bod)
BODStopCondition * clone() const
Create a copy of this object and send a pointer to it.
Brent's optimization for one parameter.
BrentOneDimension * clone() const
Create a copy of this object and send a pointer to it.
double doStep()
This function is called by the step() method and contains all calculations.
bool isInitialIntervalSet_
bool isInitialIntervalSet() const
void doInit(const ParameterList ¶ms)
This function is called by the init() method and contains all calculations.
BrentOneDimension(Function *function=0)
virtual ~BrentOneDimension()
double optimize()
Initialize optimizer.
void setBracketing(BrentOneDimension::Bracketing bracketing)
Set the brackeitng method.
BrentOneDimension::Bracketing getBracketing() const
Get the brackeitng method.
void setInitialInterval(double inf, double sup)
Set intial search interval.
This is the function abstract class.
The parameter list object.