ALPSCore reference
|
#include <mean.hpp>
Public Types | |
using | value_type = T |
Public Member Functions | |
mean_acc (size_t size=1) | |
mean_acc (const mean_acc &other) | |
mean_acc & | operator= (const mean_acc &other) |
void | reset () |
void | set_size (size_t size) |
bool | valid () const |
size_t | size () const |
mean_acc & | operator<< (const computed< T > &src) |
mean_acc & | operator<< (const mean_result< T > &result) |
size_t | count () const |
mean_result< T > | result () const |
mean_result< T > | finalize () |
const mean_data< T > & | store () const |
Protected Member Functions | |
void | add (const computed< T > &source, size_t count) |
void | finalize_to (mean_result< T > &result) |
Accumulator which tracks only the mean.
using alps::alea::mean_acc< T >::value_type = T |
|
inline |
alps::alea::mean_acc< T >::mean_acc | ( | const mean_acc< T > & | other | ) |
|
protected |
|
inline |
mean_result< T > alps::alea::mean_acc< T >::finalize | ( | ) |
|
protected |
|
inline |
mean_acc< T > & alps::alea::mean_acc< T >::operator<< | ( | const mean_result< T > & | result | ) |
mean_acc< T > & alps::alea::mean_acc< T >::operator= | ( | const mean_acc< T > & | other | ) |
void alps::alea::mean_acc< T >::reset | ( | ) |
mean_result< T > alps::alea::mean_acc< T >::result | ( | ) | const |
void alps::alea::mean_acc< T >::set_size | ( | size_t | size | ) |
|
inline |
|
inline |
|
inline |
Returns false
if finalize()
has been called, true
otherwise