public class MSEErrorFunction extends java.lang.Object implements IErrorFunction<double[]>
MSE Error Function.
Constructor and Description |
---|
MSEErrorFunction()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
double |
calculateError(double[] obtained,
double[] expected)
Returns the MSE of an array of obtained values, compared with
an array of expected values
|
public double calculateError(double[] obtained, double[] expected)
Returns the MSE of an array of obtained values, compared with an array of expected values
calculateError
in interface IErrorFunction<double[]>
obtained
- Double array of obtained valuesexpected
- Double array of expected values