18 #ifndef __itkGradientDescentOptimizer_h
19 #define __itkGradientDescentOptimizer_h
73 itkGetConstReferenceMacro(Maximize,
bool);
74 itkSetMacro(Maximize,
bool);
75 itkBooleanMacro(Maximize);
76 bool GetMinimize()
const
77 {
return !m_Maximize; }
78 void SetMinimize(
bool v)
79 { this->SetMaximize(!v); }
81 { this->MaximizeOff(); }
83 { this->MaximizeOn(); }
87 virtual void AdvanceOneStep(
void);
90 void StartOptimization(
void);
94 void ResumeOptimization(
void);
98 void StopOptimization(
void);
101 itkSetMacro(LearningRate,
double);
104 itkGetConstReferenceMacro(LearningRate,
double);
110 itkGetConstReferenceMacro(NumberOfIterations,
SizeValueType);
116 itkGetConstReferenceMacro(Value,
double);
119 itkGetConstReferenceMacro(StopCondition, StopConditionType);
120 const std::string GetStopConditionDescription()
const;
124 itkGetConstReferenceMacro(Gradient, DerivativeType);
128 void PrintSelf(std::ostream & os,
Indent indent)
const;
139 void operator=(
const Self &);