SourceXtractorPlusPlus  0.14
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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_t
get ()
 
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

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:

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

Member Data Documentation

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

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