BornAgain
1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
|
Calculation of chi2 between two data sets.
Public Member Functions | |
ChiSquaredModule ()=default | |
ChiSquaredModule (const ChiSquaredModule &other)=default | |
~ChiSquaredModule () override=default | |
ChiSquaredModule * | clone () const override |
clone method More... | |
virtual const IIntensityFunction * | getIntensityFunction () const |
Returns data rescaler. More... | |
double | residual (double a, double b, double weight) override |
virtual void | setIntensityFunction (const IIntensityFunction &intensity_function) |
Sets data rescaler. More... | |
void | setVarianceFunction (const IVarianceFunction &variance_function) |
Sets squared function. More... | |
const IVarianceFunction * | varianceFunction () const |
Returns squared function. More... | |
Protected Attributes | |
std::unique_ptr< IIntensityFunction > | m_intensity_function |
std::unique_ptr< IVarianceFunction > | m_variance_function |
|
default |
|
default |
|
overridedefault |
|
overridevirtual |
clone method
Implements IChiSquaredModule.
|
virtualinherited |
Returns data rescaler.
|
overridevirtual |
Implements IChiSquaredModule.
|
virtualinherited |
Sets data rescaler.
|
inherited |
Sets squared function.
|
inherited |
Returns squared function.
|
protectedinherited |
|
protectedinherited |