public class Variance extends Object implements Impurity
Constructor and Description |
---|
Variance() |
Modifier and Type | Method and Description |
---|---|
static double |
calculate(double c0,
double c1) |
static double |
calculate(double count,
double sum,
double sumSquares)
:: DeveloperApi ::
variance calculation
|
public static double calculate(double c0, double c1)
public static double calculate(double count, double sum, double sumSquares)
count
- number of instancessum
- sum of labelssumSquares
- summation of squares of the labels