LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
LSST Data Management Base Package
Loading...
Searching...
No Matches
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.
 
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.
 

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 (const 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
T make_pair(T... args)
T pow(T... args)
Chi2Star size(Chi2Star ... args)
T sqrt(T... args)

Friends And Related Symbol 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 (const 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: