double calculate(double c0, double c1)
c0
- count of instances with label 0c1
- count of instances with label 1double calculate(double count, double sum, double sumSquares)
count
- number of instancessum
- sum of labelssumSquares
- summation of squares of the labels