VarAccumulator
VarAccumulator
Section titled “VarAccumulator”#include <custom_types.hh>template<typename VarT>struct VarAccumulatorDefined in src/lib/ncarray/custom_types.hh:184
An accumulator used for the calculation of variance and standard deviation.
List of all members
Section titled “List of all members”| 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 |
Public Attributes
Section titled “Public Attributes”| Return | Name | Description |
|---|---|---|
double |
count |
|
VarT |
mean |
|
VarT |
m2 |
double countDefined in src/lib/ncarray/custom_types.hh:185
VarT meanDefined in src/lib/ncarray/custom_types.hh:186
VarT m2Defined in src/lib/ncarray/custom_types.hh:187
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
NCA_D bool |
operator== const inline |
|
NCA_D bool |
operator!= const inline |
operator==
Section titled “operator==”const inline
inline NCA_D bool operator==(const VarAccumulator & other) constDefined in src/lib/ncarray/custom_types.hh:189
operator!=
Section titled “operator!=”const inline
inline NCA_D bool operator!=(const VarAccumulator & other) constDefined in src/lib/ncarray/custom_types.hh:193
Public Static Methods
Section titled “Public Static Methods”| 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