bpp-core3  3.0.0
bpp::NewtonBacktrackOneDimension::NBODStopCondition Class Reference

#include <Bpp/Numeric/Function/NewtonBacktrackOneDimension.h>

+ Inheritance diagram for bpp::NewtonBacktrackOneDimension::NBODStopCondition:
+ Collaboration diagram for bpp::NewtonBacktrackOneDimension::NBODStopCondition:

Public Member Functions

 NBODStopCondition (NewtonBacktrackOneDimension *bod)
 
virtual ~NBODStopCondition ()
 
NBODStopConditionclone () const
 Create a copy of this object and send a pointer to it. More...
 
void init ()
 Initialize the condition. 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 OptimizergetOptimizer () 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...
 
virtual void resetCounter ()
 
virtual void setBurnin (int burnin)
 
virtual int getBurnin () const
 

Protected Attributes

const Optimizeroptimizer_
 
double tolerance_
 
double callCount_
 Count the number of times the isToleranceReached() function has been called. More...
 
int burnin_
 

Detailed Description

Definition at line 72 of file NewtonBacktrackOneDimension.h.

Constructor & Destructor Documentation

◆ NBODStopCondition()

bpp::NewtonBacktrackOneDimension::NBODStopCondition::NBODStopCondition ( NewtonBacktrackOneDimension bod)
inline

Definition at line 76 of file NewtonBacktrackOneDimension.h.

Referenced by clone().

◆ ~NBODStopCondition()

virtual bpp::NewtonBacktrackOneDimension::NBODStopCondition::~NBODStopCondition ( )
inlinevirtual

Definition at line 78 of file NewtonBacktrackOneDimension.h.

Member Function Documentation

◆ clone()

NBODStopCondition* bpp::NewtonBacktrackOneDimension::NBODStopCondition::clone ( ) const
inlinevirtual

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::OptimizationStopCondition.

Definition at line 80 of file NewtonBacktrackOneDimension.h.

References NBODStopCondition().

◆ getBurnin()

virtual int bpp::AbstractOptimizationStopCondition::getBurnin ( ) const
inlinevirtualinherited

Definition at line 206 of file OptimizationStopCondition.h.

◆ getCurrentTolerance()

double bpp::NewtonBacktrackOneDimension::NBODStopCondition::getCurrentTolerance ( ) const
inlinevirtual

Get the current tolerance.

This is computed from the last check performed. Initially, it is equal to the tolerance parameter.

Returns
The current tolerance achieved.

Implements bpp::OptimizationStopCondition.

Definition at line 85 of file NewtonBacktrackOneDimension.h.

◆ getOptimizer()

const Optimizer* bpp::AbstractOptimizationStopCondition::getOptimizer ( ) const
inlinevirtualinherited
Returns
The optimizer to which this instance belongs to.

Implements bpp::OptimizationStopCondition.

Definition at line 199 of file OptimizationStopCondition.h.

◆ getTolerance()

double bpp::AbstractOptimizationStopCondition::getTolerance ( ) const
inlinevirtualinherited

Get the tolerance parameter.

Returns
The tolerance parameter.

Implements bpp::OptimizationStopCondition.

Definition at line 202 of file OptimizationStopCondition.h.

Referenced by bpp::GoldenSectionSearch::GSSStopCondition::isToleranceReached().

◆ init()

void bpp::NewtonBacktrackOneDimension::NBODStopCondition::init ( )
inlinevirtual

Initialize the condition.

Implements bpp::OptimizationStopCondition.

Definition at line 83 of file NewtonBacktrackOneDimension.h.

◆ isToleranceReached()

bool bpp::NewtonBacktrackOneDimension::NBODStopCondition::isToleranceReached ( ) const
inlinevirtual

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.

Returns
True if the tolerance level is reached.

Implements bpp::OptimizationStopCondition.

Definition at line 84 of file NewtonBacktrackOneDimension.h.

◆ resetCounter()

virtual void bpp::AbstractOptimizationStopCondition::resetCounter ( )
inlinevirtualinherited

Definition at line 204 of file OptimizationStopCondition.h.

◆ setBurnin()

virtual void bpp::AbstractOptimizationStopCondition::setBurnin ( int  burnin)
inlinevirtualinherited

Definition at line 205 of file OptimizationStopCondition.h.

◆ setOptimizer()

void bpp::AbstractOptimizationStopCondition::setOptimizer ( const Optimizer optimizer)
inlinevirtualinherited

Set the optimizer attached to this instance.

Parameters
optimizerThe optimizer to which this instance belongs to.

Implements bpp::OptimizationStopCondition.

Definition at line 200 of file OptimizationStopCondition.h.

◆ setTolerance()

void bpp::AbstractOptimizationStopCondition::setTolerance ( double  tolerance)
inlinevirtualinherited

Set the tolerance parameter.

Parameters
toleranceThe tolerance parameter.

Implements bpp::OptimizationStopCondition.

Definition at line 201 of file OptimizationStopCondition.h.

Member Data Documentation

◆ burnin_

◆ callCount_

◆ optimizer_

◆ tolerance_


The documentation for this class was generated from the following file: