00001
00007 #ifndef _SquaredCustomValueCondition_h
00008 #define _SquaredCustomValueCondition_h
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include "StandardStopCondition.h"
00019
00020
00021
00022
00023
00024 class SquaredCustomValueCondition
00025 : public StandardStopCondition
00026 {
00027 public:
00028
00029
00032 SquaredCustomValueCondition(void);
00033
00040 SquaredCustomValueCondition(const wxString& name,
00041 bool metWhenGreater = false);
00042
00049 SquaredCustomValueCondition(const DoubleParameter& epsilon,
00050 bool metWhenGreater = false);
00051
00056 SquaredCustomValueCondition(const SquaredCustomValueCondition& from);
00057
00058
00061 ~SquaredCustomValueCondition(void);
00062
00063
00064
00065
00066
00067
00070 virtual std::auto_ptr<StopConditionBase> Clone() const;
00071
00072
00073
00076 virtual wxString ToString() const;
00077
00078
00079
00084 virtual bool IsMet(const ColumnVector& previousPoint,
00085 const ColumnVector& lastPoint,
00086 double previousValue,
00087 double lastValue,
00088 double customValue) const;
00089
00094 virtual bool IsMet(const ColumnVector& previousPoint,
00095 const ColumnVector& lastPoint,
00096 double previousValue,
00097 const FunctionBase& function,
00098 double customValue) const;
00099
00104 virtual bool IsMet(const ColumnVector& previousPoint,
00105 const ColumnVector& lastPoint,
00106 const FunctionBase& function,
00107 double customValue) const;
00108
00109 protected:
00110 private:
00111 bool mMetWhenGreater;
00112
00113
00114 };
00115
00116
00117
00118
00119
00120
00121
00122 #endif // _SquaredCustomValueCondition_h