00001
00006 #ifndef _ConjugateGradientsMethodIteration_h
00007 #define _ConjugateGradientsMethodIteration_h
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "../GradientMethodIteration.h"
00018
00019
00020
00021
00022
00023 class ConjugateGradientsMethodIteration
00024 : public GradientMethodIteration
00025 {
00026 public:
00027
00028
00029
00037 ConjugateGradientsMethodIteration
00038 (const ColumnVector& startingPoint,
00039 const ColumnVector& gradient,
00040 double gamma,
00041 bool directionReset,
00042 const ColumnVector& direction,
00043 double tau,
00044 const ColumnVector& endPoint);
00045
00048 ~ConjugateGradientsMethodIteration(void);
00049
00050
00051
00052
00053
00054
00055
00056 virtual vector<IterationDataIdType> ClassIds() const;
00057
00058 static IterationDataIdType ClassId();
00059
00060
00061
00062 double Gamma() const;
00063
00064 bool DirectionReset() const;
00065
00066
00067
00068 protected:
00069 private:
00070
00071 double mGamma;
00072
00073 bool mDirectionReset;
00074
00075 };
00076
00077
00078
00079
00080
00081
00082
00083 #endif // _ConjugateGradientsMethodIteration_h