@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); }
@Override public Vector get() { Double t = randomProducer.get(); return VectorUtils.of(perDimensionGenerators.stream() .mapToDouble(f -> f.apply(t)).toArray()); }
ParametricVectorGenerator implements VectorGenerator { @Override public Vector get() { Double t = randomProducer.get(); return VectorUtils.of(perDimensionGenerators.stream() .mapToDouble(f -> f.apply(t)).toArray()); } }
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); }
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(); }
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();  }