Generated on Tue Dec 16 13:35:01 2008 for ell-3.0.0 by doxygen 1.5.1

ell::SAC_NoMinimaChange Class Reference

#include <SamplingAbortionCriterion.hh>

Inheritance diagram for ell::SAC_NoMinimaChange:

Inheritance graph
[legend]

Detailed Description

This criterion is used to decide if a sampling process changing a landscape topology should end based on the number of minima of the landscape. If this number does not change for given number of iterations abortSampling gives true.

Author:
Hannes Kochniss, Martin Mann

Definition at line 174 of file SamplingAbortionCriterion.hh.

Public Member Functions

virtual bool abortSampling (const LandscapeTopology *const lt, const bool ltChanged=true)
virtual void reset (void)
 SAC_NoMinimaChange (const size_t maxNoChangeIterations)
virtual ~SAC_NoMinimaChange ()

Protected Attributes

size_t iterationsWithoutChange
size_t lastNumOfMinima
const size_t MAX_NO_CHANGE_ITERATIONS


Constructor & Destructor Documentation

ell::SAC_NoMinimaChange::SAC_NoMinimaChange ( const size_t  maxNoChangeIterations  ) 

Construction

Parameters:
maxNoChangeIterations the maximal number of iterations to allow, where no change in the minima number was seen.

Definition at line 110 of file SamplingAbortionCriterion.cc.

ell::SAC_NoMinimaChange::~SAC_NoMinimaChange (  )  [virtual]

destruction

Definition at line 119 of file SamplingAbortionCriterion.cc.


Member Function Documentation

bool ell::SAC_NoMinimaChange::abortSampling ( const LandscapeTopology *const  lt,
const bool  ltChanged = true 
) [virtual]

Decides whether or not the sampling should be aborted or has to be continued based on the number of minima of the topology. If this number has not changed for MAX_NO_CHANGE_ITERATIONS successive iterations the function returns true.

Parameters:
lt the landscape topology that is used to decide if the sampling should be aborted or not based on its properties
ltChanged whether or not the landscape was changed since the last call of this function
Returns:
true if the sampling should be aborted, false otherwise

Implements ell::SamplingAbortionCriterion.

Definition at line 128 of file SamplingAbortionCriterion.cc.

void ell::SAC_NoMinimaChange::reset ( void   )  [virtual]

Resets the internal counter of the number of iterations seen so far where no change in the number of minima was visible.

Implements ell::SamplingAbortionCriterion.

Definition at line 147 of file SamplingAbortionCriterion.cc.


Field Documentation

the number of iterations seen so far where no change in the number of minima was seen

Definition at line 218 of file SamplingAbortionCriterion.hh.

Number of minima seen in last iteration.

Definition at line 220 of file SamplingAbortionCriterion.hh.

the maximal number of iterations without change in the number of minima to allow

Definition at line 215 of file SamplingAbortionCriterion.hh.


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