Skip to content
Snippets Groups Projects
Commit b6b59e90 authored by Hwaipy Li's avatar Hwaipy Li
Browse files

BUG-FIX Histogram

the tempMax should be -Double.MAX_VALUE, not Double.MIN_VALUE
parent aa1d86c5
Branches
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ public class Histogram { ...@@ -45,7 +45,7 @@ public class Histogram {
this.numBins = numBins; this.numBins = numBins;
this.originalData = data; this.originalData = data;
Double tempMax = Double.MIN_VALUE; Double tempMax = -Double.MAX_VALUE;
Double tempMin = Double.MAX_VALUE; Double tempMin = Double.MAX_VALUE;
for (Number number : data) { for (Number number : data) {
double value = number.doubleValue(); double value = number.doubleValue();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment