Skip to content

Commit

Permalink
Update include/emp/Evolve/Systematics.hpp
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Andres Moreno <[email protected]>
  • Loading branch information
emilydolson and mmore500 authored Mar 2, 2024
1 parent c362b78 commit 02c7992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/emp/Evolve/Systematics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@ namespace emp {
}

double med = Median(result.ns);
double sum_diffs = std::accumulate(result.ns.begin(), result.ns.end(), 0.0, [med](double sum, double n) { return sum + std::abs(n-med); });
const double sum_diffs = std::accumulate(result.ns.begin(), result.ns.end(), 0.0, [med](double sum, double n) { return sum + std::abs(n-med); });

result.total += sum_diffs/result.ns.size();
return result;
Expand Down

0 comments on commit 02c7992

Please sign in to comment.