VectorGeneratorPrimitives { public static VectorGenerator parallelogram(Vector bounds) { return parallelogram(bounds, System.currentTimeMillis()); }  static VectorGenerator gauss(Vector means, Vector variances, Long seed); static VectorGenerator gauss(Vector means, Vector variances); static VectorGenerator ring(double radius, double fromAngle, double toAngle); static VectorGenerator ring(double radius, double fromAngle, double toAngle, long seed); static VectorGenerator parallelogram(Vector bounds); static VectorGenerator parallelogram(Vector bounds, long seed); static VectorGenerator circle(double radius); static VectorGenerator circle(double radius, long seed); static VectorGenerator zero(int size); static VectorGenerator constant(Vector v);  }
@Test public void testParallelogram() { VectorGeneratorPrimitives.parallelogram(VectorUtils.of(2., 100.)) .asDataStream().unlabeled().limit(1000) .forEach(v -> { assertTrue(v.get(0) <= 2.); assertTrue(v.get(0) >= -2.); assertTrue(v.get(1) <= 100.); assertTrue(v.get(1) >= -100.); }); }