public class MeanAbsoluteDeviation extends java.lang.Object implements RegressionMeasure
Modifier and Type | Field and Description |
---|---|
static MeanAbsoluteDeviation |
instance |
Constructor and Description |
---|
MeanAbsoluteDeviation() |
Modifier and Type | Method and Description |
---|---|
double |
measure(double[] truth,
double[] prediction)
Returns an index to measure the quality of regression.
|
static double |
of(double[] truth,
double[] prediction)
Calculates the mean absolute deviation error.
|
java.lang.String |
toString() |
public static final MeanAbsoluteDeviation instance
public double measure(double[] truth, double[] prediction)
RegressionMeasure
measure
in interface RegressionMeasure
truth
- the true response values.prediction
- the predicted response values.public static double of(double[] truth, double[] prediction)
public java.lang.String toString()
toString
in class java.lang.Object