18#ifndef __itkGradientDescentOptimizer2_h
19#define __itkGradientDescentOptimizer2_h
107 itkSetMacro( LearningRate,
double );
110 itkGetConstReferenceMacro( LearningRate,
double );
113 itkSetMacro( NumberOfIterations,
unsigned long );
116 itkGetConstReferenceMacro( NumberOfIterations,
unsigned long );
119 itkGetConstMacro( CurrentIteration,
unsigned int );
122 itkGetConstReferenceMacro( Value,
double );
134 itkSetMacro( UseOpenMP,
bool );
140 void PrintSelf( std::ostream & os, Indent indent )
const override;
Implement a gradient descent optimizer.
ScaledSingleValuedNonLinearOptimizer Superclass
DerivativeType m_SearchDirection
Superclass::ScaledCostFunctionType ScaledCostFunctionType
SmartPointer< Self > Pointer
virtual void AdvanceOneStep(void)
void PrintSelf(std::ostream &os, Indent indent) const override
GradientDescentOptimizer2()
virtual void ResumeOptimization(void)
Superclass::ScaledCostFunctionPointer ScaledCostFunctionPointer
SmartPointer< const Self > ConstPointer
GradientDescentOptimizer2 Self
virtual void MetricErrorResponse(ExceptionObject &err)
~GradientDescentOptimizer2() override
Superclass::DerivativeType DerivativeType
@ MaximumNumberOfIterations
StopConditionType m_StopCondition
Superclass::MeasureType MeasureType
virtual void StopOptimization(void)
Superclass::ScalesType ScalesType
DerivativeType m_Gradient
GradientDescentOptimizer2(const Self &)
unsigned long m_CurrentIteration
void StartOptimization(void) override
void operator=(const Self &)
Superclass::CostFunctionType CostFunctionType
unsigned long m_NumberOfIterations
Superclass::ParametersType ParametersType
NonLinearOptimizer::ScalesType ScalesType
Superclass::ParametersType ParametersType
ScaledSingleValuedCostFunction ScaledCostFunctionType
Superclass::DerivativeType DerivativeType
ScaledCostFunctionType::Pointer ScaledCostFunctionPointer
Superclass::CostFunctionType CostFunctionType
Superclass::MeasureType MeasureType