BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ChiSquaredModule.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Core/Residual/ChiSquaredModule.h
6 //! @brief Defines class ChiSquaredModule.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_CORE_RESIDUAL_CHISQUAREDMODULE_H
16 #define BORNAGAIN_CORE_RESIDUAL_CHISQUAREDMODULE_H
17 
19 
20 //! Calculation of chi2 between two data sets.
21 //! @ingroup fitting
22 
24 public:
27  virtual ~ChiSquaredModule() {}
28 
29  virtual ChiSquaredModule* clone() const { return new ChiSquaredModule(*this); }
30 
31  virtual double residual(double a, double b, double weight);
32 };
33 
34 #endif // BORNAGAIN_CORE_RESIDUAL_CHISQUAREDMODULE_H
Defines interface IChiSquaredModule.
Calculation of chi2 between two data sets.
ChiSquaredModule(const ChiSquaredModule &other)
virtual ChiSquaredModule * clone() const
clone method
virtual double residual(double a, double b, double weight)
virtual ~ChiSquaredModule()
Interface residual calculations.