18 #ifndef itkGradientDescentLineSearchOptimizerv4_h
19 #define itkGradientDescentLineSearchOptimizerv4_h
58 template<
typename TInternalComputationValueType>
93 itkSetMacro( Epsilon , TInternalComputationValueType );
94 itkGetMacro( Epsilon , TInternalComputationValueType );
106 itkSetMacro( LowerLimit , TInternalComputationValueType );
107 itkGetMacro( LowerLimit , TInternalComputationValueType );
108 itkSetMacro( UpperLimit , TInternalComputationValueType );
109 itkGetMacro( UpperLimit , TInternalComputationValueType );
110 itkSetMacro( MaximumLineSearchIterations ,
unsigned int );
111 itkGetMacro( MaximumLineSearchIterations ,
unsigned int );
117 void AdvanceOneStep()
override;
125 void PrintSelf( std::ostream & os,
Indent indent )
const override;
127 TInternalComputationValueType GoldenSectionSearch( TInternalComputationValueType a,
128 TInternalComputationValueType b,
129 TInternalComputationValueType c,
134 TInternalComputationValueType
m_Phi;
150 #ifndef ITK_MANUAL_INSTANTIATION
151 #include "itkGradientDescentLineSearchOptimizerv4.hxx"
Light weight base class for most itk classes.
TInternalComputationValueType m_Phi
Define numeric traits for std::vector.
typename Superclass::DerivativeType DerivativeType
TInternalComputationValueType m_Epsilon
TInternalComputationValueType m_Resphi
TInternalComputationValueType m_UpperLimit
typename Superclass::ParametersType ParametersType
typename Superclass::MeasureType MeasureType
unsigned int m_LineSearchIterations
TInternalComputationValueType m_LowerLimit
Class which monitors convergence during the course of optimization.
TInternalComputationValueType InternalComputationValueType
unsigned int m_MaximumLineSearchIterations
Control indentation during Print() invocation.
Gradient descent optimizer.
Gradient descent optimizer with a golden section line search.