LSST Applications  21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
Public Member Functions | Public Attributes | Friends | List of all members
lsst::jointcal::Chi2List Class Reference

Structure to accumulate the chi2 contributions per each star (to help find outliers). More...

#include <Chi2.h>

Inheritance diagram for lsst::jointcal::Chi2List:
lsst::jointcal::Chi2Accumulator std::vector< Chi2Star >

Public Member Functions

void addEntry (double chi2, std::size_t ndof, std::shared_ptr< BaseStar > star) override
 
std::pair< double, double > computeAverageAndSigma ()
 Compute the average and std-deviation of these chisq values. More...
 
Chi2Star push_back (Chi2Star ... args)
 
Chi2Star crbegin (Chi2Star ... args)
 
Chi2Star erase (Chi2Star ... args)
 
Chi2Star data (Chi2Star ... args)
 
Chi2Star insert (Chi2Star ... args)
 
Chi2Star pop_back (Chi2Star ... args)
 
Chi2Star shrink_to_fit (Chi2Star ... args)
 
Chi2Star back (Chi2Star ... args)
 
Chi2Star end (Chi2Star ... args)
 
Chi2Star resize (Chi2Star ... args)
 
Chi2Star emplace_back (Chi2Star ... args)
 
Chi2Star size (Chi2Star ... args)
 
Chi2Star cbegin (Chi2Star ... args)
 
Chi2Star front (Chi2Star ... args)
 
Chi2Star rbegin (Chi2Star ... args)
 
Chi2Star crend (Chi2Star ... args)
 
Chi2Star assign (Chi2Star ... args)
 
Chi2Star reserve (Chi2Star ... args)
 
Chi2Star capacity (Chi2Star ... args)
 
Chi2Star empty (Chi2Star ... args)
 
Chi2Star cend (Chi2Star ... args)
 
Chi2Star swap (Chi2Star ... args)
 
Chi2Star max_size (Chi2Star ... args)
 
Chi2Star rend (Chi2Star ... args)
 
Chi2Star get_allocator (Chi2Star ... args)
 
Chi2Star clear (Chi2Star ... args)
 
Chi2Star at (Chi2Star ... args)
 
Chi2Star emplace (Chi2Star ... args)
 
Chi2Star operator[] (Chi2Star ... args)
 
Chi2Star begin (Chi2Star ... args)
 

Public Attributes

Chi2Star elements
 STL member. More...
 

Friends

std::ostreamoperator<< (std::ostream &s, Chi2List const &chi2List)
 

Detailed Description

Structure to accumulate the chi2 contributions per each star (to help find outliers).

Definition at line 100 of file Chi2.h.

Member Function Documentation

◆ addEntry()

void lsst::jointcal::Chi2List::addEntry ( double  chi2,
std::size_t  ndof,
std::shared_ptr< BaseStar star 
)
inlineoverridevirtual

Implements lsst::jointcal::Chi2Accumulator.

Definition at line 102 of file Chi2.h.

102  {
103  push_back(Chi2Star(chi2, std::move(star)));
104  }
T move(T... args)
Chi2Star push_back(Chi2Star ... args)

◆ computeAverageAndSigma()

std::pair< double, double > lsst::jointcal::Chi2List::computeAverageAndSigma ( )

Compute the average and std-deviation of these chisq values.

Definition at line 33 of file Chi2.cc.

33  {
34  double sum = 0;
35  double sum2 = 0;
36  for (auto i : *this) {
37  sum += i.chi2;
38  sum2 += std::pow(i.chi2, 2);
39  }
40  double average = sum / size();
41  double sigma = sqrt(sum2 / size() - std::pow(average, 2));
42  return std::make_pair(average, sigma);
43 }
afw::table::Key< double > sigma
Definition: GaussianPsf.cc:49
T make_pair(T... args)
T pow(T... args)
Chi2Star size(Chi2Star ... args)
T sqrt(T... args)

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream s,
Chi2List const &  chi2List 
)
friend

Definition at line 45 of file Chi2.cc.

45  {
46  s << "chi2 per star : ";
47  for (auto chi2 : chi2List) {
48  s << *(chi2.star) << " chi2: " << chi2.chi2 << " ; ";
49  }
50  s << std::endl;
51  return s;
52 }
T endl(T... args)

Member Data Documentation

◆ elements

Chi2Star std::vector< Chi2Star >::elements
inherited

STL member.


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