18#ifndef itkScaledSingleValuedNonLinearOptimizer_h
19#define itkScaledSingleValuedNonLinearOptimizer_h
21#include "itkSingleValuedNonLinearOptimizer.h"
80 using Superclass::MeasureType;
81 using Superclass::ParametersType;
82 using Superclass::DerivativeType;
83 using Superclass::CostFunctionType;
113 itkGetConstReferenceMacro(ScaledCurrentPosition, ParametersType);
118 const ParametersType &
128 itkBooleanMacro(Maximize);
132 itkGetConstMacro(Maximize,
bool);
142 PrintSelf(std::ostream & os, Indent indent)
const override;
183 DerivativeType & derivative)
const;
A cost function that applies a scaling to another cost function.
SmartPointer< Self > Pointer
ParametersType m_UnscaledCurrentPosition
virtual void InitializeScales()
virtual void SetUseScales(bool arg)
ScaledSingleValuedNonLinearOptimizer()
virtual void GetScaledDerivative(const ParametersType ¶meters, DerivativeType &derivative) const
NonLinearOptimizer::ScalesType ScalesType
virtual void GetScaledValueAndDerivative(const ParametersType ¶meters, MeasureType &value, DerivativeType &derivative) const
void SetCostFunction(CostFunctionType *costFunction) override
ITK_DISALLOW_COPY_AND_MOVE(ScaledSingleValuedNonLinearOptimizer)
SmartPointer< const Self > ConstPointer
bool GetUseScales() const
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetScaledCurrentPosition(const ParametersType ¶meters)
virtual MeasureType GetScaledValue(const ParametersType ¶meters) const
virtual void SetMaximize(bool _arg)
ScaledCostFunctionPointer m_ScaledCostFunction
const ParametersType & GetCurrentPosition() const override
void SetCurrentPosition(const ParametersType ¶m) override
ParametersType m_ScaledCurrentPosition
~ScaledSingleValuedNonLinearOptimizer() override=default