18 #ifndef __itkGradientDescentOptimizer_h
19 #define __itkGradientDescentOptimizer_h
74 itkGetConstReferenceMacro(Maximize,
bool);
75 itkSetMacro(Maximize,
bool);
76 itkBooleanMacro(Maximize);
102 itkSetMacro(LearningRate,
double);
105 itkGetConstReferenceMacro(LearningRate,
double);
111 itkGetConstReferenceMacro(NumberOfIterations, SizeValueType);
114 itkGetConstMacro(CurrentIteration, SizeValueType);
117 itkGetConstReferenceMacro(Value,
double);
129 virtual ~GradientDescentOptimizer() {}
130 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
SizeValueType m_NumberOfIterations
SmartPointer< const Self > ConstPointer
virtual void SetMaximize(bool _arg)
Light weight base class for most itk classes.
virtual void MaximizeOff()
Implement a gradient descent optimizer.
virtual void AdvanceOneStep(void)
void operator=(const Self &)
This class is a base for the Optimization methods that optimize a single valued function.
virtual void PrintSelf(std::ostream &os, Indent indent) const ITK_OVERRIDE
unsigned long SizeValueType
SingleValuedNonLinearOptimizer Superclass
CostFunctionType::DerivativeType DerivativeType
virtual void StartOptimization(void) ITK_OVERRIDE
virtual const std::string GetStopConditionDescription() const ITK_OVERRIDE
std::ostringstream m_StopConditionDescription
virtual void MaximizeOn()
SizeValueType m_CurrentIteration
void ResumeOptimization(void)
void StopOptimization(void)
GradientDescentOptimizer()
Control indentation during Print() invocation.
DerivativeType m_Gradient
SmartPointer< Self > Pointer
StopConditionType m_StopCondition
GradientDescentOptimizer Self