SourceXtractorPlusPlus
0.13
Please provide a description of the project.
|
Data vs model comparator which computes a modified \(\chi^2\) residual. More...
#include <LogChiSquareComparator.h>
Public Member Functions | |
LogChiSquareComparator (double u0=10.) | |
Creates a new LogChiSquareComparator instance with the given \(u_0\). More... | |
double | operator() (double real, double model, double weight) const |
Returns the modified \(\chi^2\) residual. More... | |
Private Attributes | |
double | m_u0 |
Data vs model comparator which computes a modified \(\chi^2\) residual.
The \(\chi^2\) residual is modified to be more immune against occasionally large non-Gaussian deviations. It is computed as:
\[ g_{(u)} = \begin{cases} & u_0 * log\left( 1 + \dfrac{u}{u_0} \right) \text{ if } u \geqslant 0 \\ & -u_0 * log\left( 1 - \dfrac{u}{u_0} \right) \text{ if } u < 0 \end{cases} \]
where:
Definition at line 52 of file LogChiSquareComparator.h.
|
inline |
Creates a new LogChiSquareComparator instance with the given \(u_0\).
Definition at line 57 of file LogChiSquareComparator.h.
|
inline |
Returns the modified \(\chi^2\) residual.
Definition at line 60 of file LogChiSquareComparator.h.
References std::log(), and m_u0.
|
private |
Definition at line 67 of file LogChiSquareComparator.h.
Referenced by operator()().