go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkStandardStochasticVarianceReducedGradientDescentOptimizer.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 __itkStandardStochasticVarianceReducedGradientOptimizer_h
19#define __itkStandardStochasticVarianceReducedGradientOptimizer_h
20
22
23namespace itk
24{
58{
59public:
60
64
66 typedef SmartPointer<const Self> ConstPointer;
67
69 itkNewMacro( Self );
70
73
83
85 itkSetMacro( Param_a, double );
86 itkGetConstMacro( Param_a, double );
87
89 itkSetMacro( Param_beta, double );
90 itkGetConstMacro( Param_beta, double );
91
93 itkSetMacro( Param_A, double );
94 itkGetConstMacro( Param_A, double );
95
97 itkSetMacro( Param_alpha, double );
98 itkGetConstMacro( Param_alpha, double );
99
102 void AdvanceOneStep( void ) override;
103
105 void StartOptimization( void ) override;
106
112 itkSetMacro( InitialTime, double );
113 itkGetConstMacro( InitialTime, double );
114
117 itkGetConstMacro( CurrentTime, double );
118
122 virtual void ResetCurrentTimeToInitialTime( void )
123 {
124 this->m_CurrentTime = this->m_InitialTime;
125 }
126
127protected:
128
131
133 virtual double Compute_a( double k ) const;
134
136 virtual double Compute_beta( double k ) const;
137
143 virtual void UpdateCurrentTime( void );
144
147
150
151private:
152
153 StandardStochasticVarianceReducedGradientOptimizer( const Self& ); // purposely not implemented
154 void operator=( const Self& ); // purposely not implemented
155
157 double m_Param_a;
159 double m_Param_A;
161
164
165}; // end class StandardStochasticVarianceReducedGradientOptimizer
166
167
168} // end namespace itk
169
170
171#endif // end #ifndef __itkStandardStochasticVarianceReducedGradientOptimizer_h
This class implements a gradient descent optimizer with a decaying gain.


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo