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{
57{
58public:
60
64
65 using Pointer = SmartPointer<Self>;
66 using ConstPointer = SmartPointer<const Self>;
67
69 itkNewMacro(Self);
70
73
75 using Superclass::MeasureType;
76 using Superclass::ParametersType;
77 using Superclass::DerivativeType;
78 using Superclass::CostFunctionType;
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
103 AdvanceOneStep() override;
104
106 void
108
114 itkSetMacro(InitialTime, double);
115 itkGetConstMacro(InitialTime, double);
116
119 itkGetConstMacro(CurrentTime, double);
120
124 virtual void
126 {
127 this->m_CurrentTime = this->m_InitialTime;
128 }
129
130protected:
133
135 virtual double
136 Compute_a(double k) const;
137
139 virtual double
140 Compute_beta(double k) const;
141
147 virtual void
149
151 double m_CurrentTime{ 0.0 };
152
155
156private:
158 double m_Param_a{ 1.0 };
160 double m_Param_A{ 1.0 };
161 double m_Param_alpha{ 0.602 };
162
164 double m_InitialTime{ 0.0 };
165
166}; // end class StandardStochasticVarianceReducedGradientOptimizer
167
168
169} // end namespace itk
170
171
172#endif // end #ifndef itkStandardStochasticVarianceReducedGradientOptimizer_h
A cost function that applies a scaling to another cost function.
This class implements a gradient descent optimizer with a decaying gain.
ITK_DISALLOW_COPY_AND_MOVE(StandardStochasticVarianceReducedGradientOptimizer)


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo