![]() |
QMCPACK
|
Collaboration diagram for BlockHistogram< T >:Public Types | |
| using | value_type = T |
| using | reference = T & |
| using | size_type = typename std::deque< T >::size_type |
| using | iterator = typename std::deque< T >::iterator |
| using | const_iterator = typename std::deque< T >::const_iterator |
Public Member Functions | |
| BlockHistogram (size_type n=100) | |
| default constructor More... | |
| void | resize (size_type n, const T &x) |
| resize the histogram More... | |
| void | reserve (size_type n) |
| void | clear () |
| value_type | mean () const |
| value_type | result () const |
| size_type | size () const |
| void | operator() (const T &x) |
| add a value x More... | |
Public Attributes | |
| int | maxSize |
| T | mySum |
| T | myWeightInv |
| std::deque< T > | myData |
Definition at line 24 of file BlockHistogram.h.
| using const_iterator = typename std::deque<T>::const_iterator |
Definition at line 36 of file BlockHistogram.h.
Definition at line 35 of file BlockHistogram.h.
| using reference = T& |
Definition at line 33 of file BlockHistogram.h.
Definition at line 34 of file BlockHistogram.h.
| using value_type = T |
Definition at line 32 of file BlockHistogram.h.
|
inlineexplicit |
default constructor
| n | size of the samples defult=100 |
Definition at line 41 of file BlockHistogram.h.
|
inline |
Definition at line 58 of file BlockHistogram.h.
References BlockHistogram< T >::mySum, and BlockHistogram< T >::myWeightInv.
Referenced by BlockHistogram< T >::reserve().
|
inline |
Definition at line 65 of file BlockHistogram.h.
References BlockHistogram< T >::mySum, and BlockHistogram< T >::myWeightInv.
|
inline |
add a value x
Definition at line 73 of file BlockHistogram.h.
References BlockHistogram< T >::maxSize, BlockHistogram< T >::myData, BlockHistogram< T >::mySum, and BlockHistogram< T >::myWeightInv.
|
inline |
Definition at line 52 of file BlockHistogram.h.
References BlockHistogram< T >::clear(), BlockHistogram< T >::maxSize, and qmcplusplus::n.
|
inline |
resize the histogram
Definition at line 45 of file BlockHistogram.h.
References BlockHistogram< T >::myData, BlockHistogram< T >::mySum, BlockHistogram< T >::myWeightInv, and qmcplusplus::n.
|
inline |
|
inline |
| int maxSize |
Definition at line 26 of file BlockHistogram.h.
Referenced by BlockHistogram< T >::operator()(), and BlockHistogram< T >::reserve().
| std::deque<T> myData |
Definition at line 29 of file BlockHistogram.h.
Referenced by BlockHistogram< T >::operator()(), BlockHistogram< T >::resize(), and BlockHistogram< T >::size().
| T mySum |
Definition at line 27 of file BlockHistogram.h.
Referenced by BlockHistogram< T >::clear(), BlockHistogram< T >::mean(), BlockHistogram< T >::operator()(), BlockHistogram< T >::resize(), and BlockHistogram< T >::result().
| T myWeightInv |
Definition at line 28 of file BlockHistogram.h.
Referenced by BlockHistogram< T >::clear(), BlockHistogram< T >::mean(), BlockHistogram< T >::operator()(), and BlockHistogram< T >::resize().