bpp-core
2.2.0
|
#include <Bpp/Numeric/Function/BrentOneDimension.h>
Public Member Functions | |
BODStopCondition (BrentOneDimension *bod) | |
virtual | ~BODStopCondition () |
BODStopCondition * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
bool | isToleranceReached () const |
Tell if the we reached the desired tolerance with a given new set of estimates. More... | |
double | getCurrentTolerance () const |
Get the current tolerance. More... | |
const Optimizer * | getOptimizer () const |
void | setOptimizer (const Optimizer *optimizer) |
Set the optimizer attached to this instance. More... | |
void | setTolerance (double tolerance) |
Set the tolerance parameter. More... | |
double | getTolerance () const |
Get the tolerance parameter. More... | |
void | init () |
Initialize the condition. More... | |
virtual void | resetCounter () |
virtual void | setBurnin (int burnin) |
virtual int | getBurnin () const |
Protected Attributes | |
const Optimizer * | optimizer_ |
double | tolerance_ |
double | callCount_ |
Count the number of times the isToleranceReached() function has been called. More... | |
int | burnin_ |
Definition at line 62 of file BrentOneDimension.h.
|
inline |
Definition at line 66 of file BrentOneDimension.h.
References bpp::AbstractOptimizationStopCondition::burnin_, bpp::BrentOneDimension::tol2, and bpp::AbstractOptimizationStopCondition::tolerance_.
Referenced by clone().
|
inlinevirtual |
Definition at line 71 of file BrentOneDimension.h.
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::OptimizationStopCondition.
Definition at line 73 of file BrentOneDimension.h.
References BODStopCondition().
|
inlinevirtualinherited |
Definition at line 211 of file OptimizationStopCondition.h.
|
virtual |
Get the current tolerance.
This is computed from the last check performed. Initially, it is equal to the tolerance parameter.
Implements bpp::OptimizationStopCondition.
Definition at line 60 of file BrentOneDimension.cpp.
References bpp::NumTools::abs(), bpp::BrentOneDimension::x, and bpp::BrentOneDimension::xm.
Referenced by isToleranceReached().
|
inlinevirtualinherited |
Implements bpp::OptimizationStopCondition.
Definition at line 204 of file OptimizationStopCondition.h.
|
inlinevirtualinherited |
Get the tolerance parameter.
Implements bpp::OptimizationStopCondition.
Definition at line 207 of file OptimizationStopCondition.h.
Referenced by bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached().
|
inlinevirtualinherited |
Initialize the condition.
Implements bpp::OptimizationStopCondition.
Reimplemented in bpp::FunctionStopCondition, and bpp::ParametersStopCondition.
Definition at line 208 of file OptimizationStopCondition.h.
Referenced by bpp::ParametersStopCondition::init(), and bpp::FunctionStopCondition::init().
|
virtual |
Tell if the we reached the desired tolerance with a given new set of estimates.
The new parameter list is compared to the last estimates, and the lastParameterEstimates list is actulaized with the newParameters list.
Implements bpp::OptimizationStopCondition.
Definition at line 50 of file BrentOneDimension.cpp.
References bpp::BrentOneDimension::a, bpp::BrentOneDimension::b, bpp::AbstractOptimizationStopCondition::burnin_, bpp::AbstractOptimizationStopCondition::callCount_, getCurrentTolerance(), bpp::AbstractOptimizationStopCondition::optimizer_, and bpp::BrentOneDimension::tol2.
|
inlinevirtualinherited |
Definition at line 209 of file OptimizationStopCondition.h.
|
inlinevirtualinherited |
Definition at line 210 of file OptimizationStopCondition.h.
|
inlinevirtualinherited |
Set the optimizer attached to this instance.
optimizer | The optimizer to which this instance belongs to. |
Implements bpp::OptimizationStopCondition.
Definition at line 205 of file OptimizationStopCondition.h.
|
inlinevirtualinherited |
Set the tolerance parameter.
tolerance | The tolerance parameter. |
Implements bpp::OptimizationStopCondition.
Definition at line 206 of file OptimizationStopCondition.h.
|
protectedinherited |
Definition at line 159 of file OptimizationStopCondition.h.
Referenced by BODStopCondition(), bpp::ParametersStopCondition::getCurrentTolerance(), bpp::FunctionStopCondition::getCurrentTolerance(), bpp::PowellMultiDimensions::PMDStopCondition::isToleranceReached(), bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached(), isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and bpp::AbstractOptimizationStopCondition::operator=().
|
mutableprotectedinherited |
Count the number of times the isToleranceReached() function has been called.
Definition at line 157 of file OptimizationStopCondition.h.
Referenced by bpp::ParametersStopCondition::getCurrentTolerance(), bpp::FunctionStopCondition::getCurrentTolerance(), bpp::PowellMultiDimensions::PMDStopCondition::isToleranceReached(), bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached(), isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and bpp::AbstractOptimizationStopCondition::operator=().
|
protectedinherited |
Definition at line 150 of file OptimizationStopCondition.h.
Referenced by bpp::ParametersStopCondition::init(), bpp::FunctionStopCondition::init(), isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and bpp::AbstractOptimizationStopCondition::operator=().
|
protectedinherited |
Definition at line 151 of file OptimizationStopCondition.h.
Referenced by BODStopCondition(), bpp::ParametersStopCondition::getCurrentTolerance(), bpp::FunctionStopCondition::getCurrentTolerance(), bpp::PowellMultiDimensions::PMDStopCondition::isToleranceReached(), bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached(), bpp::DownhillSimplexMethod::DSMStopCondition::isToleranceReached(), bpp::ParametersStopCondition::isToleranceReached(), bpp::FunctionStopCondition::isToleranceReached(), and bpp::AbstractOptimizationStopCondition::operator=().