@Test public void testApply() { assertEquals(0.75, aggregator.apply(new double[]{1.0, 1.0, 1.0, 0.0}), 0.001); }
@Override public Double apply(double[] estimations) { A.notEmpty(estimations, "estimations vector"); return Arrays.stream(estimations).reduce(0.0, Double::sum) / estimations.length; }
MeanValuePredictionsAggregator implements PredictionsAggregator { @Override public Double apply(double[] estimations) { A.notEmpty(estimations, "estimations vector"); return Arrays.stream(estimations).reduce(0.0, Double::sum) / estimations.length; } }
MeanValuePredictionsAggregator implements PredictionsAggregator { @Override public Double apply(double[] estimations) { A.notEmpty(estimations, "estimations vector"); return Arrays.stream(estimations).reduce(0.0, Double::sum) / estimations.length; }  }
MeanValuePredictionsAggregator implements PredictionsAggregator { @Override public Double apply(double[] estimations) { A.notEmpty(estimations, "estimations vector"); return Arrays.stream(estimations).reduce(0.0, Double::sum) / estimations.length; }  @Override Double apply(double[] estimations); }
MeanValuePredictionsAggregator implements PredictionsAggregator { @Override public Double apply(double[] estimations) { A.notEmpty(estimations, "estimations vector"); return Arrays.stream(estimations).reduce(0.0, Double::sum) / estimations.length; }  @Override Double apply(double[] estimations);  }