Empirical
|
#include <DataNode.h>
Public Member Functions | |
DataNodeModule () | |
VAL_TYPE | GetHistMin () const |
VAL_TYPE | GetHistMax () const |
size_t | GetHistCount (size_t bin_id) const |
Return the count of items in the. More... | |
double | GetHistWidth (size_t bin_id) const |
Return the width of the. More... | |
const emp::vector< size_t > & | GetHistCounts () const |
Return a vector containing the count of items in each bin of the histogram. More... | |
emp::vector< double > | GetBinMins () const |
Return a vector containing the lowest value allowed in each bin. More... | |
void | SetupBins (VAL_TYPE _min, VAL_TYPE _max, size_t num_bins) |
void | AddDatum (const VAL_TYPE &val) |
Add. More... | |
void | Reset () |
Reset the DataNode (empties the historgram) 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::Histogram, MODS... > |
using | parent_t = DataNodeModule< VAL_TYPE, MODS... > |
using | base_t = DataNodeModule< VAL_TYPE > |
Protected Attributes | |
VAL_TYPE | offset |
Min value in first bin; others are offset by this much. More... | |
VAL_TYPE | width |
How wide is the overall histogram? More... | |
IndexMap | bins |
Map of values to which bin they fall in. More... | |
emp::vector< size_t > | counts |
Counts in each bin. More... | |
== data::Histogram == Make the DataNode track a histogram of values observed since the last reset.
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
Add.
val | to the DataNode |
|
inline |
Return a vector containing the lowest value allowed in each bin.
|
inline |
Return the count of items in the.
bin_id | 'th bin of the histogram |
|
inline |
Return a vector containing the count of items in each bin of the histogram.
|
inline |
Returns the maximum value this histogram is capable of containing (i.e. the maximum value for the last bin)
|
inline |
Returns the minimum value this histogram is capable of containing (i.e. the minimum value for the first bin)
|
inline |
Return the width of the.
bin_id | 'th bin of the histogram |
|
inline |
Print debug information (useful for figuring out which modifiers you included)
|
inline |
Reset the DataNode (empties the historgram)
|
inline |
Sets up the ranges of values that go in each bin of the histogram.
_min | - the lowest value allowed in the histogram |
_max | - the largest value allowed in the histogram |
num_bins | - The number of bins the histogram should have. The distance between min and max will be easily divided among this many bins. |
|
protected |
Map of values to which bin they fall in.
|
protected |
Counts in each bin.
|
protected |
Min value in first bin; others are offset by this much.
|
protected |
How wide is the overall histogram?