Skip to content

VarAccumulator

#include <custom_types.hh>
template<typename VarT>
struct VarAccumulator

Defined in src/lib/ncarray/custom_types.hh:184

An accumulator used for the calculation of variance and standard deviation.

Name Kind Owner
count variable Declared here
mean variable Declared here
m2 variable Declared here
operator== function Declared here
operator!= function Declared here
merge function Declared here
Return Name Description
double count
VarT mean
VarT m2

double count

Defined in src/lib/ncarray/custom_types.hh:185


VarT mean

Defined in src/lib/ncarray/custom_types.hh:186


VarT m2

Defined in src/lib/ncarray/custom_types.hh:187

Return Name Description
NCA_D bool operator== const inline
NCA_D bool operator!= const inline

const inline

inline NCA_D bool operator==(const VarAccumulator & other) const

Defined in src/lib/ncarray/custom_types.hh:189


const inline

inline NCA_D bool operator!=(const VarAccumulator & other) const

Defined in src/lib/ncarray/custom_types.hh:193

Return Name Description
NCA_DVarAccumulator merge static inline

static inline

static inline NCA_DVarAccumulator merge(const VarAccumulator & a, const VarAccumulator & b)

Defined in src/lib/ncarray/custom_types.hh:197