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

Method GetValue

Modules/ModelFit/src/Functors/mitkSVModelFitCostFunction.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

GetSignalMethod · 0.80
GetSizeMethod · 0.45

Tested by

no test coverage detected