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