SourceXtractorPlusPlus 0.21
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
ChiSquareComparator.h
Go to the documentation of this file.
1
23#ifndef MODELFITTING_CHISQUARECOMPARATOR_H
24#define MODELFITTING_CHISQUARECOMPARATOR_H
25
26namespace ModelFitting {
27
43
44public:
45
47 double operator()(double real, double model, double weight) const {
48 return weight * (real - model);
49 }
50
51}; // end of class ChiSquareComparator
52
53} // end of namespace ModelFitting
54
55#endif /* MODELFITTING_CHISQUARECOMPARATOR_H */
56
Data vs model comparator which computes the residual.
double operator()(double real, double model, double weight) const
Returns the residual.