go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkStochasticPreconditionedGradientDescentOptimizer.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 #ifndef __itkStochasticPreconditionedGradientDescentOptimizer_h
19 #define __itkStochasticPreconditionedGradientDescentOptimizer_h
20 
22 
23 namespace itk
24 {
58 {
59 public:
60 
64 
65  typedef SmartPointer<Self> Pointer;
66  typedef SmartPointer<const Self> ConstPointer;
67 
69  itkNewMacro( Self );
70 
73 
83 
87  //typedef Superclass::EigenSystemType EigenSystemType;
88 
90  itkSetMacro( Param_a, double );
91  itkGetConstMacro( Param_a, double );
92 
94  itkSetMacro( Param_A, double );
95  itkGetConstMacro( Param_A, double );
96 
98  itkSetMacro( Param_alpha, double );
99  itkGetConstMacro( Param_alpha, double );
100 
103  virtual void AdvanceOneStep( void );
104 
106  virtual void StartOptimization( void );
107 
114  itkSetMacro( InitialTime, double );
115  itkGetConstMacro( InitialTime, double );
116 
120  itkGetConstMacro( CurrentTime, double );
121 
122 protected:
123 
126 
128  virtual double Compute_a( double k ) const;
129 
135  virtual void UpdateCurrentTime( void );
136 
139 
140 private:
141 
142  StochasticPreconditionedGradientDescentOptimizer( const Self& ); // purposely not implemented
143  void operator=( const Self& ); // purposely not implemented
144 
146  double m_Param_a;
147  double m_Param_A;
149 
152 
153 }; // end class StochasticPreconditionedGradientDescentOptimizer
154 
155 
156 } // end namespace itk
157 
158 
159 #endif // end #ifndef __itkStochasticPreconditionedGradientDescentOptimizer_h
This class implements a gradient descent optimizer with a decaying gain and preconditioning.


Generated on 1667476801 for elastix by doxygen 1.9.1 elastix logo