Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
This class implements constraints as simple barrier functions. More...
#include <mitkSimpleBarrierConstraintChecker.h>
Classes | |
struct | Constraint |
Static Public Member Functions | |
static Pointer | New () |
Protected Types | |
typedef std::vector< Constraint > | ConstraintVectorType |
Protected Member Functions | |
PenaltyValueType | CalcPenalty (const ParametersType ¶meters, const Constraint &constraint) const |
SimpleBarrierConstraintChecker () | |
~SimpleBarrierConstraintChecker () override | |
Protected Member Functions inherited from mitk::ConstraintCheckerBase | |
ConstraintCheckerBase () | |
~ConstraintCheckerBase () override | |
Protected Member Functions inherited from mitk::ConstraintCheckerInterface | |
ConstraintCheckerInterface () | |
virtual | ~ConstraintCheckerInterface () |
Protected Attributes | |
ConstraintVectorType | m_Constraints |
This class implements constraints as simple barrier functions.
SimpleBarrierConstraintChecker is used to check parameters against inequality constraints realized as simple barrier functions.
Inequality constraints will be transformed to an inequality greater or equal zero (c(x)>= 0). The BarrierSize indicates the size of the region in front of the border of the legal value range. The barrier function is modelled by log(c(x)/BarrierSize).
Example:
The given constraint is 500<= param_1. Its barriersize is 50, so the barrier region is between 500 and 550.
The constraint will be transformed in 0 <= param_1 - 500. The barrier function will 0 for any param_1 > 550 and min(-log((param_1 - 500)/50), MaxConstraintPenalty) for any other value of param_1.
If you have set a sum barrier, it will be checked against the value sum of the specified parameters.
Definition at line 42 of file mitkSimpleBarrierConstraintChecker.h.
typedef double mitk::SimpleBarrierConstraintChecker::BarrierValueType |
Definition at line 57 of file mitkSimpleBarrierConstraintChecker.h.
typedef double mitk::SimpleBarrierConstraintChecker::BarrierWidthType |
Definition at line 58 of file mitkSimpleBarrierConstraintChecker.h.
typedef itk::SmartPointer< const Self > mitk::SimpleBarrierConstraintChecker::ConstPointer |
Definition at line 48 of file mitkSimpleBarrierConstraintChecker.h.
|
protected |
Definition at line 105 of file mitkSimpleBarrierConstraintChecker.h.
typedef ParametersType::SizeValueType mitk::SimpleBarrierConstraintChecker::ParameterIndexType |
Definition at line 59 of file mitkSimpleBarrierConstraintChecker.h.
typedef std::vector<ParameterIndexType> mitk::SimpleBarrierConstraintChecker::ParameterIndexVectorType |
Definition at line 60 of file mitkSimpleBarrierConstraintChecker.h.
Definition at line 55 of file mitkSimpleBarrierConstraintChecker.h.
Definition at line 53 of file mitkSimpleBarrierConstraintChecker.h.
Definition at line 50 of file mitkSimpleBarrierConstraintChecker.h.
Definition at line 47 of file mitkSimpleBarrierConstraintChecker.h.
Definition at line 45 of file mitkSimpleBarrierConstraintChecker.h.
Definition at line 54 of file mitkSimpleBarrierConstraintChecker.h.
Definition at line 46 of file mitkSimpleBarrierConstraintChecker.h.
|
inlineprotected |
Definition at line 114 of file mitkSimpleBarrierConstraintChecker.h.
|
inlineoverrideprotected |
Definition at line 118 of file mitkSimpleBarrierConstraintChecker.h.
|
protected |
void mitk::SimpleBarrierConstraintChecker::DeleteConstraint | ( | unsigned int | index | ) |
Constraint& mitk::SimpleBarrierConstraintChecker::GetConstraint | ( | unsigned int | index | ) |
const Constraint& mitk::SimpleBarrierConstraintChecker::GetConstraint | ( | unsigned int | index | ) | const |
|
overridevirtual |
Returns the penalty value that indicates at least one failed constrained.
Implements mitk::ConstraintCheckerInterface.
|
virtual |
|
overridevirtual |
Returns the number of defined constraints, that will be checked. Thus also the size of the penalty vector.
Implements mitk::ConstraintCheckerInterface.
|
override |
|
static |
void mitk::SimpleBarrierConstraintChecker::ResetConstraints | ( | ) |
void mitk::SimpleBarrierConstraintChecker::SetLowerBarrier | ( | ParameterIndexType | parameterID, |
BarrierValueType | barrier, | ||
BarrierWidthType | width = 0.0 |
||
) |
Sets a lower barrier for one parameter
void mitk::SimpleBarrierConstraintChecker::SetLowerSumBarrier | ( | const ParameterIndexVectorType & | parameterIDs, |
BarrierValueType | barrier, | ||
BarrierWidthType | width = 0.0 |
||
) |
Sets a lower sum barrier for a set of parameter
|
virtual |
void mitk::SimpleBarrierConstraintChecker::SetUpperBarrier | ( | ParameterIndexType | parameterID, |
BarrierValueType | barrier, | ||
BarrierWidthType | width = 0.0 |
||
) |
Sets an upper barrier for one parameter
void mitk::SimpleBarrierConstraintChecker::SetUpperSumBarrier | ( | const ParameterIndexVectorType & | parameterIDs, |
BarrierValueType | barrier, | ||
BarrierWidthType | width = 0.0 |
||
) |
Sets an upper sum barrier for a set of parameter
|
protected |
Definition at line 110 of file mitkSimpleBarrierConstraintChecker.h.