Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkReducedChiSquareFitCostFunction.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkReducedChiSquareFitCostFunction_h
14 #define mitkReducedChiSquareFitCostFunction_h
15 
17 
18 #include <MitkModelFitExports.h>
19 
20 namespace mitk
21 {
22 
35  {
36  public:
41  itkNewMacro(Self);
42 
44 
45  protected:
46 
47  MeasureType CalcMeasure(const ParametersType &parameters, const SignalType& signal) const override;
48 
50  {
51 
52  }
53 
55 
56  };
57 
58 }
59 #endif
#define MITKMODELFIT_EXPORT
Interface class that is implemented by all cost functions used in model fitting.
itk::Array< double > SignalType
Type representing the observed signal values.
Single-valued cost function that computes the reduced chi-square statistic.
MeasureType CalcMeasure(const ParametersType &parameters, const SignalType &signal) const override
Base class for all model fit cost functions that return a single scalar cost value.
ModelFitCostFunctionInterface::SignalType SignalType
Find image slices visible on a given plane.