Skip to content

Commit

Permalink
Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Sep 7, 2023
1 parent e13c047 commit ed2a75a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,20 +210,20 @@ private interface ObjIntToDoubleFunction<T> {
* Custom statistics class to collect mean, standard deviation and max.
*/
private static class MyStatistics {
private final Statistics s = new Statistics();
private final Statistics stats = new Statistics();
private double max;

void add(double value) {
s.add(value);
stats.add(value);
max = max > value ? max : value;
}

double mean() {
return s.getMean();
return stats.getMean();
}

double sd() {
return s.getStandardDeviation();
return stats.getStandardDeviation();
}

double max() {
Expand Down

0 comments on commit ed2a75a

Please sign in to comment.