BornAgain  1.18.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 scattering at grazing incidence
4 //
5 //! @file Device/Instrument/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_INSTRUMENT_CHISQUAREDMODULE_H
16 #define BORNAGAIN_CORE_INSTRUMENT_CHISQUAREDMODULE_H
17 
19 
20 //! Calculation of chi2 between two data sets.
21 //! @ingroup fitting
22 
24 {
25 public:
28  virtual ~ChiSquaredModule() {}
29 
30  virtual ChiSquaredModule* clone() const { return new ChiSquaredModule(*this); }
31 
32  virtual double residual(double a, double b, double weight);
33 };
34 
35 #endif // BORNAGAIN_CORE_INSTRUMENT_CHISQUAREDMODULE_H
Defines class 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.