SourceXtractorPlusPlus 1.0.3
SourceXtractor++, the next generation SExtractor
Loading...
Searching...
No Matches
SourceXtractor::KappaSigmaBinning< VarType >::Stats Struct Reference
Collaboration diagram for SourceXtractor::KappaSigmaBinning< VarType >::Stats:

Public Member Functions

void operator() (VarType v)
std::tuple< double, double, size_tget ()
void reset ()

Public Attributes

double mean = 0
double sigma = 0
size_t ndata = 0

Detailed Description

template<typename VarType>
struct SourceXtractor::KappaSigmaBinning< VarType >::Stats

Online mean and standard deviation computation Similar to boost::accumulators, but this turned out to be faster

Definition at line 138 of file KappaSigmaBinning.h.

Member Function Documentation

◆ get()

template<typename VarType>
std::tuple< double, double, size_t > SourceXtractor::KappaSigmaBinning< VarType >::Stats::get ( )
inline

Definition at line 148 of file KappaSigmaBinning.h.

References std::numeric_limits::epsilon(), std::make_tuple(), mean, ndata, sigma, and std::sqrt().

Referenced by SourceXtractor::KappaSigmaBinning< VarType >::computeBins().

Here is the call graph for this function:

◆ operator()()

template<typename VarType>
void SourceXtractor::KappaSigmaBinning< VarType >::Stats::operator() ( VarType v)
inline

Definition at line 142 of file KappaSigmaBinning.h.

References mean, ndata, and sigma.

◆ reset()

template<typename VarType>
void SourceXtractor::KappaSigmaBinning< VarType >::Stats::reset ( )
inline

Definition at line 158 of file KappaSigmaBinning.h.

References mean, ndata, and sigma.

Referenced by SourceXtractor::KappaSigmaBinning< VarType >::computeBins().

Member Data Documentation

◆ mean

template<typename VarType>
double SourceXtractor::KappaSigmaBinning< VarType >::Stats::mean = 0

Definition at line 139 of file KappaSigmaBinning.h.

Referenced by get(), operator()(), and reset().

◆ ndata

template<typename VarType>
size_t SourceXtractor::KappaSigmaBinning< VarType >::Stats::ndata = 0

Definition at line 140 of file KappaSigmaBinning.h.

Referenced by get(), operator()(), and reset().

◆ sigma

template<typename VarType>
double SourceXtractor::KappaSigmaBinning< VarType >::Stats::sigma = 0

Definition at line 139 of file KappaSigmaBinning.h.

Referenced by get(), operator()(), and reset().


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