### Question:
RelativeRootMeanSquaredErrorMT extends AbstractMultiTargetErrorMeasurer { @Override public double getCurrentError() { if(weightSeen==0) return Double.MAX_VALUE; else { double sum=0; int numOutputs=sumSquaredError.length; for (int i=0; i<numOutputs; i++) sum+=Math.sqrt(sumSquaredError[i]/sumSquaredErrorToTargetMean[i]); return sum/numLearnedOutputs; } }  @Override void addPrediction(Prediction prediction, Prediction trueClass, double weight); @Override double getCurrentError(); @Override double getCurrentError(int index); @Override double[] getCurrentErrors();  }### Answer:
@Test public void testGetCurrentError() { assertEquals(0.9402350854416155, m.getCurrentError(), 0.0000001); }
@Test public void testGetCurrentErrorInt() { assertEquals(0.664202694282111, m.getCurrentError(0), 0.0000001); assertEquals(0.5147167180492306, m.getCurrentError(1), 0.0000001); assertEquals(1.641785843993505, m.getCurrentError(2), 0.0000001); }