uncommons-maths icon indicating copy to clipboard operation
uncommons-maths copied to clipboard

DataSet() initialization of maximum variable

Open Bennyweasl opened this issue 8 years ago • 0 comments

When initializing the DataSet class the maximum variable is set to Double.MIN_VALUE. This leads to issues when all values in the dataset are negative.

Recommendations 1.) maximum = -Double.MAX_VALUE 2.) maximum = Double.NEGATIVE_INFINITY

Apache initializes as NAN which can lead to other issues

Bennyweasl avatar Jun 01 '17 22:06 Bennyweasl