MCPcopy Create free account
hub / github.com/MITK/MITK / GetPenaltySum

Method GetPenaltySum

Modules/ModelFit/src/Functors/mitkConstraintCheckerBase.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16mitk::ConstraintCheckerBase::PenaltyValueType
17 mitk::ConstraintCheckerBase::GetPenaltySum(const ParametersType &parameters) const
18{
19 PenaltyValueType result = 0.0;
20 PenaltyArrayType penalties = GetPenalties(parameters);
21
22 for (PenaltyArrayType::iterator penaltyPos = penalties.begin(); penaltyPos != penalties.end(); ++penaltyPos)
23 {
24 result += *penaltyPos;
25 }
26
27 return result;
28};

Callers 2

CalcMeasureMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1