18#ifndef itkGradientDescentLineSearchOptimizerv4_h
19#define itkGradientDescentLineSearchOptimizerv4_h
59template <
typename TInternalComputationValueType>
83 using typename Superclass::DerivativeType;
86 using typename Superclass::MeasureType;
87 using typename Superclass::ParametersType;
95 itkSetMacro(Epsilon, TInternalComputationValueType);
96 itkGetMacro(Epsilon, TInternalComputationValueType);
108 itkSetMacro(LowerLimit, TInternalComputationValueType);
109 itkGetMacro(LowerLimit, TInternalComputationValueType);
110 itkSetMacro(UpperLimit, TInternalComputationValueType);
111 itkGetMacro(UpperLimit, TInternalComputationValueType);
112 itkSetMacro(MaximumLineSearchIterations,
unsigned int);
113 itkGetMacro(MaximumLineSearchIterations,
unsigned int);
139 TInternalComputationValueType
141 TInternalComputationValueType b,
142 TInternalComputationValueType c,
146 TInternalComputationValueType m_LowerLimit{};
147 TInternalComputationValueType m_UpperLimit{};
148 TInternalComputationValueType m_Phi{};
149 TInternalComputationValueType m_Resphi{};
150 TInternalComputationValueType m_Epsilon{};
153 unsigned int m_MaximumLineSearchIterations{};
156 unsigned int m_LineSearchIterations{};
164#ifndef ITK_MANUAL_INSTANTIATION
165# include "itkGradientDescentLineSearchOptimizerv4.hxx"
Class which monitors convergence during the course of optimization.
Gradient descent optimizer with a golden section line search.
TInternalComputationValueType InternalComputationValueType
~GradientDescentLineSearchOptimizerv4Template() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
TInternalComputationValueType GoldenSectionSearch(TInternalComputationValueType a, TInternalComputationValueType b, TInternalComputationValueType c, TInternalComputationValueType metricb=NumericTraits< TInternalComputationValueType >::max())
void AdvanceOneStep() override
GradientDescentLineSearchOptimizerv4Template()
Gradient descent optimizer.
Control indentation during Print() invocation.
Light weight base class for most itk classes.
Define additional traits for native types such as int or float.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....