go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkStandardGradientDescentOptimizer.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18
19#ifndef __itkStandardGradientDescentOptimizer_h
20#define __itkStandardGradientDescentOptimizer_h
21
23
24namespace itk
25{
26
67{
68public:
69
73
75 typedef SmartPointer< const Self > ConstPointer;
76
78 itkNewMacro( Self );
79
82
92
94 itkSetMacro( Param_a, double );
95 itkGetConstMacro( Param_a, double );
96
98 itkSetMacro( Param_A, double );
99 itkGetConstMacro( Param_A, double );
100
102 itkSetMacro( Param_alpha, double );
103 itkGetConstMacro( Param_alpha, double );
104
107 void AdvanceOneStep( void ) override;
108
110 void StartOptimization( void ) override;
111
117 itkSetMacro( InitialTime, double );
118 itkGetConstMacro( InitialTime, double );
119
122 itkGetConstMacro( CurrentTime, double );
123
127 virtual void ResetCurrentTimeToInitialTime( void )
128 {
129 this->m_CurrentTime = this->m_InitialTime;
130 }
131
132
133protected:
134
137
139 virtual double Compute_a( double k ) const;
140
145 virtual void UpdateCurrentTime( void );
146
149
152
153private:
154
155 StandardGradientDescentOptimizer( const Self & ); // purposely not implemented
156 void operator=( const Self & ); // purposely not implemented
157
159 double m_Param_a;
160 double m_Param_A;
162
165
166};
167
168} // end namespace itk
169
170#endif // end #ifndef __itkStandardGradientDescentOptimizer_h
Implement a gradient descent optimizer.
Superclass::ScaledCostFunctionType ScaledCostFunctionType
Superclass::ScaledCostFunctionPointer ScaledCostFunctionPointer
Superclass::DerivativeType DerivativeType
Superclass::CostFunctionType CostFunctionType
Superclass::ParametersType ParametersType
This class implements a gradient descent optimizer with a decaying gain.
Superclass::ScaledCostFunctionType ScaledCostFunctionType
Superclass::ScaledCostFunctionPointer ScaledCostFunctionPointer
virtual double Compute_a(double k) const


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo