@Test
public void testApply2() {

    WeightedPredictionsAggregator aggregator = new WeightedPredictionsAggregator(new double[] {1.0, 0.5, 0.25});
    assertEquals(3.0, aggregator.apply(new double[] {1.0, 2.0, 4.0}), 0.001);
}