Empirical
|
#include <DataNode.h>
Public Member Functions | |
DataNodeModule () | |
double | GetTotal () const |
Get the sum of all values added to this DataNode since the last reset. More... | |
double | GetMean () const |
Get the mean of all values added to this DataNode since the last reset. More... | |
double | GetMin () const |
Get the minimum of all values added to this DataNode since the last reset. More... | |
double | GetMax () const |
Get the maximum of all values added to this DataNode since the last reset. More... | |
double | GetTotal (size_t update) const |
Get the sum of all values added to this DataNode during the. More... | |
double | GetMean (size_t update) const |
Get the mean of all values added to this DataNode during the. More... | |
double | GetMin (size_t update) const |
Get the minimum of all values added to this DataNode during the. More... | |
double | GetMax (size_t update) const |
Get the maximum of all values added to this DataNode during the. More... | |
size_t | GetResetCount () const |
void | Reset () |
Store the current range statistics in the archive and reset for a new interval. More... | |
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::FullRange, MODS... > |
using | parent_t = DataNodeModule< VAL_TYPE, MODS... > |
using | base_t = DataNodeModule< VAL_TYPE > |
Protected Attributes | |
emp::vector< double > | total_vals |
Totals from previous resets. More... | |
emp::vector< size_t > | num_vals |
Value counts from previous resets. More... | |
emp::vector< double > | min_vals |
Minimums from previous resets. More... | |
emp::vector< double > | max_vals |
Maximums from previous resets. More... | |
== data::FullRange == This module makes the DataNode store a history of distributional information measured by data::Range beteen calls to Reset(). Series of historical values are stored in vectors (except mean, which is calculated from total and count).
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
Get the maximum of all values added to this DataNode since the last reset.
|
inline |
Get the maximum of all values added to this DataNode during the.
update | specified. |
|
inline |
Get the mean of all values added to this DataNode since the last reset.
|
inline |
Get the mean of all values added to this DataNode during the.
update | specified. |
|
inline |
Get the minimum of all values added to this DataNode since the last reset.
|
inline |
Get the minimum of all values added to this DataNode during the.
update | specified. |
|
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 |
Get the sum of all values added to this DataNode since the last reset.
|
inline |
Get the sum of all values added to this DataNode during the.
update | specified. |
|
inline |
Print debug information (useful for figuring out which modifiers you included)
|
inline |
Store the current range statistics in the archive and reset for a new interval.
|
protected |
Maximums from previous resets.
|
protected |
Minimums from previous resets.
|
protected |
Value counts from previous resets.
|
protected |
Totals from previous resets.