ALPSCore reference
|
#include <mean.hpp>
Public Member Functions | |
mean_data (size_t size) | |
void | reset () |
size_t | size () const |
size_t | count () const |
size_t & | count () |
const column< T > & | data () const |
column< T > & | data () |
void | convert_to_mean () |
void | convert_to_sum () |
Friends | |
class | mean_acc< T > |
class | mean_result< T > |
void | serialize (serializer &, const std::string &, const mean_result< T > &) |
void | deserialize (deserializer &, const std::string &, mean_result< T > &) |
Data which tracks only the mean/sum and the count.
Mean data may be particularly memory-constrained, therefore mean_acc is a "union"-like structure, which usually represents the sum (in the case of accumulating) or the mean (in the case of working with the mean).
|
inline |
void alps::alea::mean_data< T >::convert_to_mean | ( | ) |
void alps::alea::mean_data< T >::convert_to_sum | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void alps::alea::mean_data< T >::reset | ( | ) |
|
inline |
|
friend |
|
friend |
|
friend |