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

Single-valued cost function that computes the reduced chi-square statistic. More...

#include <mitkReducedChiSquareFitCostFunction.h>

Inheritance diagram for mitk::ReducedChiSquareFitCostFunction:
Collaboration diagram for mitk::ReducedChiSquareFitCostFunction:

Public Types

typedef ReducedChiSquareFitCostFunction Self
 
typedef mitk::SVModelFitCostFunction Superclass
 
typedef itk::SmartPointer< Self > Pointer
 
typedef itk::SmartPointer< const Self > ConstPointer
 
typedef Superclass::SignalType SignalType
 
- Public Types inherited from mitk::SVModelFitCostFunction
typedef SVModelFitCostFunction Self
 
typedef itk::SingleValuedCostFunction 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
 
 ReducedChiSquareFitCostFunction ()
 
 ~ReducedChiSquareFitCostFunction () override
 
- Protected Member Functions inherited from mitk::SVModelFitCostFunction
 SVModelFitCostFunction ()
 
 ~SVModelFitCostFunction () override
 
- Protected Member Functions inherited from mitk::ModelFitCostFunctionInterface
 ModelFitCostFunctionInterface ()
 
virtual ~ModelFitCostFunctionInterface ()
 

Additional Inherited Members

- Public Member Functions inherited from mitk::SVModelFitCostFunction
void SetSample (const SignalType &sampleSet) override
 Sets the observed sample signal. More...
 
MeasureType GetValue (const ParametersType &parameter) const override
 Computes the scalar cost value for the given parameters. More...
 
void GetDerivative (const ParametersType &parameters, DerivativeType &derivative) const override
 Computes the derivative of the cost function numerically via finite differences. 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::SVModelFitCostFunction
SignalType m_Sample
 

Detailed Description

Single-valued cost function that computes the reduced chi-square statistic.

The reduced chi-square normalizes the chi-square value by the number of degrees of freedom (number of data points minus number of fitted parameters), providing a measure of goodness-of-fit that is comparable across fits with different numbers of parameters.

See also
SVModelFitCostFunction, ChiSquareFitCostFunction

Definition at line 34 of file mitkReducedChiSquareFitCostFunction.h.

Member Typedef Documentation

◆ ConstPointer

◆ Pointer

◆ Self

◆ SignalType

◆ Superclass

Constructor & Destructor Documentation

◆ ReducedChiSquareFitCostFunction()

mitk::ReducedChiSquareFitCostFunction::ReducedChiSquareFitCostFunction ( )
inlineprotected

Definition at line 49 of file mitkReducedChiSquareFitCostFunction.h.

◆ ~ReducedChiSquareFitCostFunction()

mitk::ReducedChiSquareFitCostFunction::~ReducedChiSquareFitCostFunction ( )
inlineoverrideprotected

Definition at line 54 of file mitkReducedChiSquareFitCostFunction.h.

Member Function Documentation

◆ CalcMeasure()

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

◆ New()

static Pointer mitk::ReducedChiSquareFitCostFunction::New ( )
static

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