timemory 3.3.0
Modular C++ Toolkit for Performance Analysis and Logging. Profiling API and Tools for C, C++, CUDA, Fortran, and Python. The C++ template API is essentially a framework to creating tools: it is designed to provide a unifying interface for recording various performance measurements alongside data logging and interfaces to other tools.
|
A generic class for statistical accumulation. It uses the timemory math overloads to enable statistics for containers such as std::vector<double>
, etc.
More...
#include "timemory/data/statistics.hpp"
Public Types | |
using | value_type = Tp |
using | this_type = statistics< Tp > |
using | compute_type = math::compute< Tp, Tp > |
template<typename Vp > | |
using | compute_value_t = math::compute< Tp, Vp > |
Public Member Functions | |
statistics ()=default | |
~statistics ()=default | |
statistics (const statistics &)=default | |
statistics (statistics &&) noexcept=default | |
statistics & | operator= (const statistics &)=default |
statistics & | operator= (statistics &&) noexcept=default |
statistics (const value_type &val) | |
statistics (value_type &&val) | |
statistics & | operator= (const value_type &val) |
int64_t | get_count () const |
const value_type & | get_min () const |
const value_type & | get_max () const |
const value_type & | get_sum () const |
const value_type & | get_sqr () const |
value_type | get_mean () const |
value_type | get_variance () const |
value_type | get_stddev () const |
void | reset () |
statistics & | operator+= (const value_type &val) |
statistics & | operator-= (const value_type &val) |
statistics & | operator*= (const value_type &val) |
statistics & | operator/= (const value_type &val) |
statistics & | operator+= (const statistics &rhs) |
statistics & | operator-= (const statistics &rhs) |
template<typename Archive > | |
void | save (Archive &ar, const unsigned int) const |
template<typename Archive > | |
void | load (Archive &ar, const unsigned int) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const statistics &obj) |
statistics | operator+ (const statistics &lhs, const statistics &rhs) |
statistics | operator- (const statistics &lhs, const statistics &rhs) |
A generic class for statistical accumulation. It uses the timemory math overloads to enable statistics for containers such as std::vector<double>
, etc.
Tp | data type for statistical accumulation |
Definition at line 82 of file statistics.hpp.
using tim::statistics< Tp >::compute_type = math::compute<Tp, Tp> |
Definition at line 87 of file statistics.hpp.
using tim::statistics< Tp >::compute_value_t = math::compute<Tp, Vp> |
Definition at line 89 of file statistics.hpp.
using tim::statistics< Tp >::this_type = statistics<Tp> |
Definition at line 86 of file statistics.hpp.
using tim::statistics< Tp >::value_type = Tp |
Definition at line 85 of file statistics.hpp.
|
inlinedefault |
|
inlinedefault |
|
inlinedefault |
|
inlinedefaultnoexcept |
|
inlineexplicit |
Definition at line 99 of file statistics.hpp.
|
inlineexplicit |
Definition at line 107 of file statistics.hpp.
|
inline |
Definition at line 127 of file statistics.hpp.
|
inline |
|
inline |
Definition at line 132 of file statistics.hpp.
Referenced by tim::statistics< Tp >::save().
|
inline |
|
inline |
Definition at line 131 of file statistics.hpp.
|
inline |
Definition at line 156 of file statistics.hpp.
References tim::math::compute< Tp, Up >::abs(), tim::statistics< Tp >::get_variance(), and tim::math::compute< Tp, Up >::sqrt().
Referenced by tim::statistics< Tp >::save().
|
inline |
Definition at line 130 of file statistics.hpp.
|
inline |
Definition at line 133 of file statistics.hpp.
References tim::math::compute< Tp, Up >::minus(), and tim::math::compute< Tp, Up >::multiply().
Referenced by tim::statistics< Tp >::get_stddev().
|
inline |
Definition at line 302 of file statistics.hpp.
|
inline |
Definition at line 205 of file statistics.hpp.
References tim::math::compute< Tp, Up >::multiply(), and tim::math::compute< Tp, Up >::sqr().
|
inline |
Definition at line 225 of file statistics.hpp.
References tim::math::compute< Tp, Up >::max(), tim::math::compute< Tp, Up >::min(), and tim::math::compute< Tp, Up >::plus().
|
inline |
Definition at line 173 of file statistics.hpp.
References tim::math::compute< Tp, Up >::max(), tim::math::compute< Tp, Up >::min(), tim::math::compute< Tp, Up >::plus(), and tim::math::compute< Tp, Up >::sqr().
|
inline |
Definition at line 246 of file statistics.hpp.
References tim::math::compute< Tp, Up >::max(), tim::math::compute< Tp, Up >::min(), and tim::math::compute< Tp, Up >::minus().
|
inline |
Definition at line 194 of file statistics.hpp.
References tim::math::compute< Tp, Up >::minus(), and tim::math::compute< Tp, Up >::sqr().
|
inline |
Definition at line 214 of file statistics.hpp.
References tim::math::compute< Tp, Up >::divide(), and tim::math::compute< Tp, Up >::sqr().
|
inlinedefault |
|
inline |
|
inlinedefaultnoexcept |
|
inline |
Definition at line 162 of file statistics.hpp.
|
inline |
Definition at line 292 of file statistics.hpp.
References tim::statistics< Tp >::get_mean(), and tim::statistics< Tp >::get_stddev().
|
friend |
Definition at line 281 of file statistics.hpp.
|
friend |
Definition at line 286 of file statistics.hpp.
|
friend |
Definition at line 269 of file statistics.hpp.