Empirical
|
#include <DataNode.h>
Public Member Functions | |
DataNodeModule () | |
const auto & | GetArchive () const |
const emp::vector< VAL_TYPE > & | GetData (size_t update) const |
Get a vector of all data that was added during the. More... | |
const emp::vector< VAL_TYPE > & | GetData () const |
Get a vector of all data that has been added since the last reset. More... | |
size_t | GetResetCount () const |
void | Reset () |
void | PrintDebug (std::ostream &os=std::cout) |
Print debug information (useful for figuring out which modifiers you included) More... | |
Protected Types | |
using | this_t = DataNodeModule< VAL_TYPE, data::Archive, MODS... > |
using | parent_t = DataNodeModule< VAL_TYPE, MODS... > |
using | base_t = DataNodeModule< VAL_TYPE > |
Protected Attributes | |
emp::vector< emp::vector< VAL_TYPE > > | archive |
Data archived from before most recent reset. More... | |
== data::Archive == This module keeps track of historical values in addition to those added since the last re-set. Every time Reset() is called, all values that have been added since the previous time Reset() are stored in a vector in the archive.
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
Get all data ever added to this DataNode. Returns a vector of vectors; each vector contains all data from a single time point (interval between resets)
|
inline |
Get a vector of all data that was added during the.
update | 'th interval between resets. |
|
inline |
Get a vector of all data that has been added since the last reset.
|
inline |
Get the number of time intervals recorded in this DataNode. Note that this is one more than the number of times it has been reset
|
inline |
Print debug information (useful for figuring out which modifiers you included)
|
inline |
Reset this DataNode, starting a new grouping of values in the archive. Resetting is useful for tracking data from different time points, such as per update or generation.
|
protected |
Data archived from before most recent reset.