Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::SquaredDifferencesFitCostFunction Class Reference

Multi-valued cost function that computes the element-wise squared differences. More...

#include <mitkSquaredDifferencesFitCostFunction.h>

Inheritance diagram for mitk::SquaredDifferencesFitCostFunction:
Collaboration diagram for mitk::SquaredDifferencesFitCostFunction:

Public Types

typedef SquaredDifferencesFitCostFunction Self
 
typedef mitk::MVModelFitCostFunction Superclass
 
typedef itk::SmartPointer< Self > Pointer
 
typedef itk::SmartPointer< const Self > ConstPointer
 
typedef Superclass::SignalType SignalType
 
- Public Types inherited from mitk::MVModelFitCostFunction
typedef MVModelFitCostFunction Self
 
typedef itk::MultipleValuedCostFunction Superclass
 
typedef itk::SmartPointer< Self > Pointer
 
typedef itk::SmartPointer< const Self > ConstPointer
 
typedef ModelFitCostFunctionInterface::SignalType SignalType
 
typedef Superclass::MeasureType MeasureType
 
typedef Superclass::DerivativeType DerivativeType
 
- Public Types inherited from mitk::ModelFitCostFunctionInterface
typedef ModelFitCostFunctionInterface Self
 
typedef itk::Array< double > SignalType
 Type representing the observed signal values. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

MeasureType CalcMeasure (const ParametersType &parameters, const SignalType &signal) const override
 
 SquaredDifferencesFitCostFunction ()
 
 ~SquaredDifferencesFitCostFunction () override
 
- Protected Member Functions inherited from mitk::MVModelFitCostFunction
 MVModelFitCostFunction ()
 
 ~MVModelFitCostFunction () override
 
- Protected Member Functions inherited from mitk::ModelFitCostFunctionInterface
 ModelFitCostFunctionInterface ()
 
virtual ~ModelFitCostFunctionInterface ()
 

Additional Inherited Members

- Public Member Functions inherited from mitk::MVModelFitCostFunction
void SetSample (const SignalType &sampleSet) override
 Sets the observed sample signal. More...
 
MeasureType GetValue (const ParametersType &parameter) const override
 Computes the cost value vector for the given parameters. More...
 
void GetDerivative (const ParametersType &parameters, DerivativeType &derivative) const override
 Computes the Jacobian matrix numerically via finite differences. More...
 
unsigned int GetNumberOfValues (void) const override
 Returns the number of values (residuals) returned by GetValue(). More...
 
unsigned int GetNumberOfParameters (void) const override
 Returns the number of model parameters. More...
 
 mitkOverrideSetConstObjectMacro (Model, ModelBase)
 
 mitkOverrideGetConstObjectMacro (Model, ModelBase)
 
virtual void SetDerivativeStepLength (double _arg)
 
virtual double GetDerivativeStepLength () const
 
- Public Member Functions inherited from mitk::ModelFitCostFunctionInterface
virtual void SetModel (const ModelBase *model)=0
 Sets the model instance to be used for cost evaluation. More...
 
virtual const ModelBase * GetModel () const =0
 Returns the model instance currently used for cost evaluation. More...
 
- Protected Attributes inherited from mitk::MVModelFitCostFunction
SignalType m_Sample
 

Detailed Description

Multi-valued cost function that computes the element-wise squared differences.

For each time point, the cost is computed as (model_signal - observed_signal)^2. Returns a vector of squared difference values (one per time point).

See also
MVModelFitCostFunction, SumOfSquaredDifferencesFitCostFunction

Definition at line 32 of file mitkSquaredDifferencesFitCostFunction.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ SignalType

Definition at line 43 of file mitkSquaredDifferencesFitCostFunction.h.

◆ Superclass

Constructor & Destructor Documentation

◆ SquaredDifferencesFitCostFunction()

mitk::SquaredDifferencesFitCostFunction::SquaredDifferencesFitCostFunction ( )
inlineprotected

Definition at line 49 of file mitkSquaredDifferencesFitCostFunction.h.

◆ ~SquaredDifferencesFitCostFunction()

mitk::SquaredDifferencesFitCostFunction::~SquaredDifferencesFitCostFunction ( )
inlineoverrideprotected

Definition at line 53 of file mitkSquaredDifferencesFitCostFunction.h.

Member Function Documentation

◆ CalcMeasure()

MeasureType mitk::SquaredDifferencesFitCostFunction::CalcMeasure ( const ParametersType &  parameters,
const SignalType &  signal 
) const
overrideprotectedvirtual

◆ New()

static Pointer mitk::SquaredDifferencesFitCostFunction::New ( )
static

The documentation for this class was generated from the following file: