@Test public void testConstant() { Vector vec = VectorUtils.of(1.0, 0.0); assertArrayEquals(vec.copy().asArray(), VectorGeneratorPrimitives.constant(vec).get().asArray(), 1e-7); }
public static VectorGenerator constant(Vector v) { return () -> v; }
VectorGeneratorPrimitives { public static VectorGenerator constant(Vector v) { return () -> v; } }
VectorGeneratorPrimitives { public static VectorGenerator constant(Vector v) { return () -> v; }  }
VectorGeneratorPrimitives { public static VectorGenerator constant(Vector v) { return () -> v; }  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); }
VectorGeneratorPrimitives { public static VectorGenerator constant(Vector v) { return () -> v; }  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);  }