LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+bcae251498,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+18ecbd06b3,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g7642f7d749+9c285cab97,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+ed77629bff,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gbd46683f8f+1c79523530,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+dfd3d5294a,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+02b11634a5,w.2024.46
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: