class 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;
    }

}