13 #ifndef MV_CONSTRAINED_COST_FUNCTION_DECORATOR_H 14 #define MV_CONSTRAINED_COST_FUNCTION_DECORATOR_H 57 itkSetMacro(FailureThreshold, PenaltyValueType);
58 itkGetConstMacro(FailureThreshold, PenaltyValueType);
59 itkSetMacro(ActivateFailureThreshold,
bool);
60 itkGetConstMacro(ActivateFailureThreshold,
bool);
64 itkGetConstMacro(EvaluationCount,
unsigned int);
69 double GetPenaltyRatio()
const;
73 double GetFailureRatio()
const;
76 ParametersType::size_type GetFailedParameter()
const;
79 MeasureType CalcMeasure(
const ParametersType ¶meters,
const SignalType& signal)
const override;
82 m_EvaluationCount(0), m_PenaltyCount(0), m_FailureCount(0), m_LastFailedParameter(-1)
ModelFitCostFunctionInterface::SignalType SignalType
Superclass::PenaltyValueType PenaltyValueType
bool m_ActivateFailureThreshold
MVConstrainedCostFunctionDecorator()
ConstraintCheckerBase::ConstPointer m_ConstraintChecker
MVModelFitCostFunction::ConstPointer m_WrappedCostFunction
itk::SmartPointer< const Self > ConstPointer
DataCollection - Class to facilitate loading/accessing structured data.
unsigned int m_EvaluationCount
#define MITKMODELFIT_EXPORT
Superclass::SignalType SignalType
~MVConstrainedCostFunctionDecorator() override
This class is used to add constraints to any multi valued model fit cost function.
PenaltyValueType m_FailureThreshold
Superclass::MeasureType MeasureType
unsigned int m_FailureCount
ConstraintCheckerBase::PenaltyValueType PenaltyValueType
ParametersType::size_type m_LastFailedParameter
mitk::MVModelFitCostFunction Superclass
unsigned int m_PenaltyCount
MVConstrainedCostFunctionDecorator Self
itk::SmartPointer< Self > Pointer
This class is the base class for constraint checker.