13 #ifndef SIMPLE_BARRIER_CONSTRAINT_CHECKER_H 14 #define SIMPLE_BARRIER_CONSTRAINT_CHECKER_H 50 itkFactorylessNewMacro(Self);
72 PenaltyArrayType GetPenalties(
const ParametersType& parameters)
const override;
74 unsigned int GetNumberOfConstraints()
const override;
76 PenaltyValueType GetFailedConstraintValue()
const override;
79 void SetLowerBarrier(ParameterIndexType parameterID, BarrierValueType barrier,
80 BarrierWidthType width = 0.0);
82 void SetUpperBarrier(ParameterIndexType parameterID, BarrierValueType barrier,
83 BarrierWidthType width = 0.0);
85 void SetLowerSumBarrier(
const ParameterIndexVectorType& parameterIDs, BarrierValueType barrier,
86 BarrierWidthType width = 0.0);
88 void SetUpperSumBarrier(
const ParameterIndexVectorType& parameterIDs, BarrierValueType barrier,
89 BarrierWidthType width = 0.0);
96 const Constraint& GetConstraint(
unsigned int index)
const;
100 void DeleteConstraint(
unsigned int index);
102 void ResetConstraints();
104 itkSetMacro(MaxConstraintPenalty, PenaltyValueType);
105 itkGetConstMacro(MaxConstraintPenalty, PenaltyValueType);
112 PenaltyValueType CalcPenalty(
const ParametersType& parameters,
const Constraint& constraint)
const;
121 PenaltyValueType m_MaxConstraintPenalty;
126 #endif // SimpleBarrierConstraintChecker_H ParametersType::SizeValueType ParameterIndexType
itk::Array< double > SignalType
This class implements constraints as simple barrier functions.
ConstraintCheckerBase Superclass
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< ParameterIndexType > ParameterIndexVectorType
std::vector< Constraint > ConstraintVectorType
SimpleBarrierConstraintChecker()
SimpleBarrierConstraintChecker Self
#define MITKMODELFIT_EXPORT
itk::SmartPointer< Self > Pointer
Superclass::PenaltyArrayType PenaltyArrayType
itk::Array< PenaltyValueType > PenaltyArrayType
itk::SmartPointer< const Self > ConstPointer
ConstraintVectorType m_Constraints
Superclass::SignalType SignalType
Superclass::ParametersType ParametersType
Superclass::ParametersType ParametersType
Superclass::PenaltyValueType PenaltyValueType
ParameterIndexVectorType parameters
~SimpleBarrierConstraintChecker() override
This class is the base class for constraint checker.