00001
00008 #ifndef _ValueCondition_h
00009 #define _ValueCondition_h
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "StandardStopCondition.h"
00020
00021
00022
00023
00024
00025 class ValueCondition
00026 : public StandardStopCondition
00027 {
00028 public:
00029
00030
00033 ValueCondition(void);
00034
00039 ValueCondition(const DoubleParameter& epsilon);
00040
00045 ValueCondition(const ValueCondition& from);
00046
00049 ~ValueCondition(void);
00050
00051
00052
00053
00054
00055
00058 virtual std::auto_ptr<StopConditionBase> Clone() const;
00059
00060
00061
00062
00067 virtual bool IsMet(const ColumnVector& previousPoint,
00068 const ColumnVector& lastPoint,
00069 double previousValue,
00070 double lastValue,
00071 double customValue = 0) const;
00072
00077 virtual bool IsMet(const ColumnVector& previousPoint,
00078 const ColumnVector& lastPoint,
00079 double previousValue,
00080 const FunctionBase& function,
00081 double customValue = 0) const;
00082
00087 virtual bool IsMet(const ColumnVector& previousPoint,
00088 const ColumnVector& lastPoint,
00089 const FunctionBase& function,
00090 double customValue = 0) const;
00091
00092 protected:
00093 private:
00094 };
00095
00096
00097
00098
00099
00100
00101
00102 #endif // _ValueCondition_h