SourceXtractorPlusPlus  0.15
Please provide a description of the project.
Public Member Functions | Public Attributes | List of all members
SourceXtractor::KappaSigmaBinning< VarType >::Stats Struct Reference
Collaboration diagram for SourceXtractor::KappaSigmaBinning< VarType >::Stats:
[legend]

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::make_tuple(), SourceXtractor::KappaSigmaBinning< VarType >::Stats::mean, SourceXtractor::KappaSigmaBinning< VarType >::Stats::ndata, SourceXtractor::KappaSigmaBinning< VarType >::Stats::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

◆ reset()

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

Member Data Documentation

◆ mean

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

◆ ndata

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

◆ sigma

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

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