Loading [MathJax]/extensions/tex2jax.js
LSST Applications g0000d66e7c+4a51730b0a,g0485b4d2cb+be65c9c1d7,g0fba68d861+f6d31a8697,g1ec0fe41b4+3ea9d11450,g1fd858c14a+41d169aaf2,g2440f9efcc+8c5ae1fdc5,g2abac59d63+64581b95a4,g35bb328faa+8c5ae1fdc5,g4d2262a081+6c6e5d09ab,g53246c7159+8c5ae1fdc5,g55585698de+6f166a295a,g56a49b3a55+7eddd92ad8,g60b5630c4e+6f166a295a,g67b6fd64d1+97cc007aa2,g78460c75b0+7e33a9eb6d,g786e29fd12+668abc6043,g8352419a5c+8c5ae1fdc5,g8852436030+3f3bba821f,g8869f962bc+e44c8a7abf,g89139ef638+97cc007aa2,g94187f82dc+6f166a295a,g989de1cb63+97cc007aa2,g9d31334357+6f166a295a,g9f33ca652e+879172f2e0,gabe3b4be73+8856018cbb,gabf8522325+977d9fabaf,gae5fe98123+8e7c4d07ad,gb1101e3267+ec54132632,gb89ab40317+97cc007aa2,gc91f06edcd+27697e055d,gcf25f946ba+3f3bba821f,gd6cbbdb0b4+1cc2750d2e,gde0f65d7ad+ec03ee3b6a,ge278dab8ac+6b863515ed,ge410e46f29+97cc007aa2,gf35d7ec915+97dd712d81,gf5e32f922b+8c5ae1fdc5,gf67bdafdda+97cc007aa2,w.2025.19
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
lsst::jointcal::Chi2Statistic Class Reference

Simple structure to accumulate chi2 and ndof. More...

#include <Chi2.h>

Inheritance diagram for lsst::jointcal::Chi2Statistic:
lsst::jointcal::Chi2Accumulator

Public Member Functions

 Chi2Statistic ()
 
void addEntry (double inc, std::size_t dof, std::shared_ptr< BaseStar >) override
 
Chi2Statisticoperator+= (Chi2Statistic const &rhs)
 

Public Attributes

double chi2
 
std::size_t ndof
 

Friends

std::ostreamoperator<< (std::ostream &s, Chi2Statistic const &chi2)
 

Detailed Description

Simple structure to accumulate chi2 and ndof.

Definition at line 52 of file Chi2.h.

Constructor & Destructor Documentation

◆ Chi2Statistic()

lsst::jointcal::Chi2Statistic::Chi2Statistic ( )
inline

Definition at line 57 of file Chi2.h.

57: chi2(0), ndof(0){};

Member Function Documentation

◆ addEntry()

void lsst::jointcal::Chi2Statistic::addEntry ( double inc,
std::size_t dof,
std::shared_ptr< BaseStar >  )
inlineoverridevirtual

Implements lsst::jointcal::Chi2Accumulator.

Definition at line 65 of file Chi2.h.

65 {
66 chi2 += inc;
67 ndof += dof;
68 }

◆ operator+=()

Chi2Statistic & lsst::jointcal::Chi2Statistic::operator+= ( Chi2Statistic const & rhs)
inline

Definition at line 70 of file Chi2.h.

70 {
71 chi2 += rhs.chi2;
72 ndof += rhs.ndof;
73 return *this;
74 }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & s,
Chi2Statistic const & chi2 )
friend

Definition at line 59 of file Chi2.h.

59 {
60 s << "chi2/ndof : " << chi2.chi2 << '/' << chi2.ndof << '=' << chi2.chi2 / chi2.ndof;
61 return s;
62 }

Member Data Documentation

◆ chi2

double lsst::jointcal::Chi2Statistic::chi2

Definition at line 54 of file Chi2.h.

◆ ndof

std::size_t lsst::jointcal::Chi2Statistic::ndof

Definition at line 55 of file Chi2.h.


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