go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkAdaptiveStochasticVarianceReducedGradientOptimizer.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 itkAdaptiveStochasticVarianceReducedGradientOptimizer_h
19#define itkAdaptiveStochasticVarianceReducedGradientOptimizer_h
20
22
23namespace itk
24{
71{
72public:
74
78
79 using Pointer = SmartPointer<Self>;
80 using ConstPointer = SmartPointer<const Self>;
81
83 itkNewMacro(Self);
84
87
89 using Superclass::MeasureType;
90 using Superclass::ParametersType;
91 using Superclass::DerivativeType;
92 using Superclass::CostFunctionType;
97
99 itkSetMacro(UseAdaptiveStepSizes, bool);
100 itkGetConstMacro(UseAdaptiveStepSizes, bool);
101
104 itkSetMacro(SigmoidMax, double);
105 itkGetConstMacro(SigmoidMax, double);
106
109 itkSetMacro(SigmoidMin, double);
110 itkGetConstMacro(SigmoidMin, double);
111
114 itkSetMacro(SigmoidScale, double);
115 itkGetConstMacro(SigmoidScale, double);
116
117protected:
120
128 void
130
132 DerivativeType m_PreviousGradient{};
133
134private:
137 double m_SigmoidMax{ 1.0 };
138 double m_SigmoidMin{ -0.8 };
139 double m_SigmoidScale{ 1e-8 };
140
141}; // end class AdaptiveStochasticVarianceReducedGradientOptimizer
142
143
144} // end namespace itk
145
146
147#endif // end #ifndef itkAdaptiveStochasticVarianceReducedGradientOptimizer_h
This class implements a gradient descent optimizer with adaptive gain.
ITK_DISALLOW_COPY_AND_MOVE(AdaptiveStochasticVarianceReducedGradientOptimizer)
A cost function that applies a scaling to another cost function.
This class implements a gradient descent optimizer with a decaying gain.


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo