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

Method GetValue

Modules/ModelFit/src/Functors/mitkMVModelFitCostFunction.cpp:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16
17
18mitk::MVModelFitCostFunction::MeasureType mitk::MVModelFitCostFunction::GetValue(const ParametersType &parameter) const
19{
20 MeasureType measure;
21
22 SignalType signal = m_Model->GetSignal(parameter);
23
24 if(signal.GetSize() != m_Sample.GetSize()) itkExceptionMacro("Signal size does not matche sample size!");
25 if(signal.GetSize() == 0) itkExceptionMacro("Signal is empty!");
26
27 measure = CalcMeasure(parameter, signal);
28
29 return measure;
30}
31
32void mitk::MVModelFitCostFunction::GetDerivative (const ParametersType &parameters, DerivativeType &derivative) const
33{

Callers 8

CreateFitInfoFromNodeMethod · 0.45
SerializeMethod · 0.45
GetCriteriaMethod · 0.45
CalcMeasureMethod · 0.45
GetCriteriaMethod · 0.45
DoModelFitMethod · 0.45

Calls 2

GetSignalMethod · 0.80
GetSizeMethod · 0.45