![]() |
QMCPACK
|
collect data with a history limit. More...
Classes | |
struct | HistoryElement |
Public Types | |
using | value_type = HistoryElement |
Public Member Functions | |
SizeLimitedDataQueue (size_t size_limit) | |
void | push (const value_type &val) |
add a new record More... | |
void | push (value_type &&val) |
add a new record More... | |
auto | weighted_avg () const |
return weighted average More... | |
auto | size () const |
return the number of records More... | |
Private Attributes | |
std::deque< value_type > | data |
const size_t | size_limit_ |
collect data with a history limit.
data stored in std::deque<std::array<T, NUM_FIELDS>>
Definition at line 26 of file SizeLimitedDataQueue.hpp.
struct qmcplusplus::SizeLimitedDataQueue::HistoryElement |
Definition at line 29 of file SizeLimitedDataQueue.hpp.
Class Members | ||
---|---|---|
array< T, NUM_FIELDS > | properties | |
T | weight |
using value_type = HistoryElement |
Definition at line 35 of file SizeLimitedDataQueue.hpp.
|
inline |
Definition at line 37 of file SizeLimitedDataQueue.hpp.
|
inline |
add a new record
Definition at line 40 of file SizeLimitedDataQueue.hpp.
Referenced by DMCRefEnergy::pushWeightEnergyVariance(), and qmcplusplus::TEST_CASE().
|
inline |
add a new record
Definition at line 49 of file SizeLimitedDataQueue.hpp.
|
inline |
return the number of records
Definition at line 75 of file SizeLimitedDataQueue.hpp.
Referenced by DMCRefEnergy::count(), and qmcplusplus::TEST_CASE().
|
inline |
return weighted average
Definition at line 58 of file SizeLimitedDataQueue.hpp.
Referenced by DMCRefEnergy::getEnergyVariance(), and qmcplusplus::TEST_CASE().
|
private |
|
private |
Definition at line 79 of file SizeLimitedDataQueue.hpp.
Referenced by SizeLimitedDataQueue< FullPrecReal, DataLayout::DATA_SIZE >::push().