SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ModelFitting::ChiSquareComparator Class Reference

Data vs model comparator which computes the \(\chi^2\) residual. More...

#include <ChiSquareComparator.h>

Public Member Functions

double operator() (double real, double model, double weight) const
 Returns the \(\chi^2\) residual.

Detailed Description

Data vs model comparator which computes the \(\chi^2\) residual.

The residual is computed as:

\[\chi = w*(r-m)\]

where:

  • \(w\): is the weight of the residual
  • \(r\): is the real value of the data
  • \(m\): is the corresponding model value

Definition at line 42 of file ChiSquareComparator.h.

Member Function Documentation

◆ operator()()

double ModelFitting::ChiSquareComparator::operator() ( double real,
double model,
double weight ) const
inline

Returns the \(\chi^2\) residual.

Definition at line 47 of file ChiSquareComparator.h.


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