SourceXtractorPlusPlus
0.8
Please provide a description of the project.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ModelFitting
ModelFitting
Engine
ChiSquareComparator.h
Go to the documentation of this file.
1
23
#ifndef MODELFITTING_CHISQUARECOMPARATOR_H
24
#define MODELFITTING_CHISQUARECOMPARATOR_H
25
26
namespace
ModelFitting {
27
42
class
ChiSquareComparator
{
43
44
public
:
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
ModelFitting::ChiSquareComparator
Data vs model comparator which computes the residual.
Definition:
ChiSquareComparator.h:42
ModelFitting::ChiSquareComparator::operator()
double operator()(double real, double model, double weight) const
Returns the residual.
Definition:
ChiSquareComparator.h:47
Generated by
1.8.5