bpp-core  2.1.0
bpp::PowellMultiDimensions::PMDStopCondition Class Reference

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

+ Inheritance diagram for bpp::PowellMultiDimensions::PMDStopCondition:
+ Collaboration diagram for bpp::PowellMultiDimensions::PMDStopCondition:

List of all members.

Public Member Functions

 PMDStopCondition (PowellMultiDimensions *pmd)
virtual ~PMDStopCondition ()
PMDStopConditionclone () 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.
double getCurrentTolerance () const
 Get the current tolerance.
const OptimizergetOptimizer () const
void setOptimizer (const Optimizer *optimizer)
 Set the optimizer attached to this instance.
void setTolerance (double tolerance)
 Set the tolerance parameter.
double getTolerance () const
 Get the tolerance parameter.
void init ()
 Initialize the condition.
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.
int burnin_

Detailed Description

Definition at line 63 of file PowellMultiDimensions.h.


Constructor & Destructor Documentation

Definition at line 69 of file PowellMultiDimensions.h.


Member Function Documentation

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 71 of file PowellMultiDimensions.h.

References PMDStopCondition().

virtual int bpp::AbstractOptimizationStopCondition::getBurnin ( ) const [inline, virtual, inherited]

Definition at line 211 of file OptimizationStopCondition.h.

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 55 of file PowellMultiDimensions.cpp.

References bpp::NumTools::abs(), bpp::PowellMultiDimensions::fp_, and bpp::PowellMultiDimensions::fret_.

Referenced by isToleranceReached().

const Optimizer* bpp::AbstractOptimizationStopCondition::getOptimizer ( ) const [inline, virtual, inherited]
Returns:
The optimizer to which this instance belongs to.

Implements bpp::OptimizationStopCondition.

Definition at line 204 of file OptimizationStopCondition.h.

double bpp::AbstractOptimizationStopCondition::getTolerance ( ) const [inline, virtual, inherited]

Get the tolerance parameter.

Returns:
The tolerance parameter.

Implements bpp::OptimizationStopCondition.

Definition at line 207 of file OptimizationStopCondition.h.

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

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 49 of file PowellMultiDimensions.cpp.

References bpp::AbstractOptimizationStopCondition::burnin_, bpp::AbstractOptimizationStopCondition::callCount_, getCurrentTolerance(), and bpp::AbstractOptimizationStopCondition::tolerance_.

virtual void bpp::AbstractOptimizationStopCondition::resetCounter ( ) [inline, virtual, inherited]

Definition at line 209 of file OptimizationStopCondition.h.

virtual void bpp::AbstractOptimizationStopCondition::setBurnin ( int  burnin) [inline, virtual, inherited]

Definition at line 210 of file OptimizationStopCondition.h.

void bpp::AbstractOptimizationStopCondition::setOptimizer ( const Optimizer optimizer) [inline, virtual, inherited]

Set the optimizer attached to this instance.

Parameters:
optimizerThe optimizer to which this instance belongs to.

Implements bpp::OptimizationStopCondition.

Definition at line 205 of file OptimizationStopCondition.h.

void bpp::AbstractOptimizationStopCondition::setTolerance ( double  tolerance) [inline, virtual, inherited]

Set the tolerance parameter.

Parameters:
toleranceThe tolerance parameter.

Implements bpp::OptimizationStopCondition.

Definition at line 206 of file OptimizationStopCondition.h.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Friends