Skip to content

Commit

Permalink
Add missing include to DataLog, fixes #394
Browse files Browse the repository at this point in the history
  • Loading branch information
amlalejini committed Oct 20, 2020
1 parent d001dc7 commit 7c82fb1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/data/DataLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "../base/vector.h"
#include "../tools/ascii_utils.h"
#include "../tools/vector_utils.h"
#include "../tools/stats.h"

namespace emp {

Expand Down Expand Up @@ -50,10 +51,10 @@ namespace emp {

T Min() const { emp::FindMin(data); }
T Max() const { emp::FindMax(data); }
T Mean() const { emp::CalcMean(data); }
T Variance() const { emp::CalcVariance(data); }
T StdDev() const { emp::CalcStdDev(data); }
T StdError() const { emp::CalcStdError(data); }
T Mean() const { emp::Mean(data); }
T Variance() const { emp::Variance(data); }
T StdDev() const { emp::StandardDeviation(data); }
T StdError() const { emp::StandardError(data); }

/// The following function prints an ascii bar graph on to the screen (or provided stream).
void AsciiBarGraph( size_t max_width=80, ///< What's the widest bars allowed?
Expand All @@ -73,7 +74,7 @@ namespace emp {
{
emp::AsciiHistogram(data, num_bins, max_width, show_scale, os);
}
};
};
}

#endif

0 comments on commit 7c82fb1

Please sign in to comment.