2 ***********************************************************
4 $HeadURL: svn://dig.cs.gc.cuny.edu/snark/trunk/src/snark/trm6.h $
5 $LastChangedRevision: 122 $
6 $Date: 2014-07-09 18:18:59 -0400 (Wed, 09 Jul 2014) $
8 ***********************************************************
10 Residual based stopping criterion
14 #ifndef Termination_Criterion
15 #define Termination_Criterion
19 #include "DistanceMeasure.h"
21 class TerminationCriterion: public termtest_class {
25 REAL terminationValue; // the value at which the algorithm should get aborted
26 DistanceMeasure* distanceMeasure; // the distance measure to use
28 BOOLEAN reportingEnabled; // if reporting is enabled
29 INTEGER reportingSkipFactor; // the skip factor
30 CHAR* reportingFilename; // the filename to report
34 void reportCurrentValue(REAL currentDistance, INTEGER iteration);
37 TerminationCriterion(DistanceMeasure* distanceMeasureIn,
38 char* reportingFilenameIn);
41 virtual ~TerminationCriterion();
45 BOOLEAN Run(REAL* recon, INTEGER* list, REAL* weight,