ParametricVectorGenerator implements VectorGenerator { @Override public Vector get() { Double t = randomProducer.get(); return VectorUtils.of(perDimensionGenerators.stream() .mapToDouble(f -> f.apply(t)).toArray()); } ParametricVectorGenerator(RandomProducer paramGenerator,
        IgniteFunction<Double, Double>... perDimensionGenerators); @Override Vector get();  }
@Test public void testGet() { Vector vec = new ParametricVectorGenerator( () -> 2., t -> t, t -> 2 * t, t -> 3 * t, t -> 100. ).get(); assertEquals(4, vec.size()); assertArrayEquals(new double[] {2., 4., 6., 100.}, vec.asArray(), 1e-7); }
@Test(expected = IllegalArgumentException.class) public void testIllegalArguments() { new ParametricVectorGenerator(() -> 2.).get(); }