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
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
87 // using Superclass::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
105
107 virtual void
109
116 itkSetMacro(InitialTime, double);
117 itkGetConstMacro(InitialTime, double);
118
122 itkGetConstMacro(CurrentTime, double);
123
124protected:
127
129 virtual double
130 Compute_a(double k) const;
131
137 virtual void
139
141 double m_CurrentTime{ 0.0 };
142
143private:
145 double m_Param_a{ 1.0 };
146 double m_Param_A{ 1.0 };
147 double m_Param_alpha{ 0.602 };
148
150 double m_InitialTime{ 0.0 };
151
152}; // end class StochasticPreconditionedGradientDescentOptimizer
153
154
155} // end namespace itk
156
157
158#endif // end #ifndef itkStochasticPreconditionedGradientDescentOptimizer_h
A cost function that applies a scaling to another cost function.
This class implements a gradient descent optimizer with a decaying gain and preconditioning.
ITK_DISALLOW_COPY_AND_MOVE(StochasticPreconditionedGradientDescentOptimizer)


Generated on Wed 12 Apr 2023 for elastix by doxygen 1.9.6 elastix logo