34 for (
auto i : *
this) {
36 sum2 += std::pow(i.chi2, 2);
38 double average = sum / size();
39 double sigma = sqrt(sum2 / size() - std::pow(average, 2));
40 return std::make_pair(average, sigma);
44 s <<
"chi2 per star : ";
45 for (
auto chi2 : chi2List) {
46 s << *(chi2.star) <<
" chi2: " << chi2.chi2 <<
" ; ";
friend std::ostream & operator<<(std::ostream &s, Chi2List const &chi2List)
Structure to accumulate the chi2 contributions per each star (to help find outliers).
Class for a simple mapping implementing a generic Gtransfo.
std::pair< double, double > computeAverageAndSigma()
Compute the average and std-deviation of these chisq values.