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 
24 namespace itk
25 {
26 
67 {
68 public:
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  virtual void AdvanceOneStep( void );
108 
110  virtual void StartOptimization( void );
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 
133 protected:
134 
137 
139  virtual double Compute_a( double k ) const;
140 
145  virtual void UpdateCurrentTime( void );
146 
149 
150 private:
151 
152  StandardGradientDescentOptimizer( const Self & ); // purposely not implemented
153  void operator=( const Self & ); // purposely not implemented
154 
156  double m_Param_a;
157  double m_Param_A;
159 
162 
163 };
164 
165 } // end namespace itk
166 
167 #endif // end #ifndef __itkStandardGradientDescentOptimizer_h
Implement a gradient descent optimizer.
This class implements a gradient descent optimizer with a decaying gain.
Superclass::DerivativeType DerivativeType
Superclass::ScaledCostFunctionPointer ScaledCostFunctionPointer
Superclass::ScaledCostFunctionType ScaledCostFunctionType
Superclass::ParametersType ParametersType
Superclass::CostFunctionType CostFunctionType
virtual double Compute_a(double k) const
Superclass::ScaledCostFunctionType ScaledCostFunctionType
Superclass::ScaledCostFunctionPointer ScaledCostFunctionPointer


Generated on 04-09-2015 for elastix by doxygen 1.8.9.1 elastix logo