@Test public void imperative() { assertArrayEquals(output, ArrayExamples.imperativeInitilize(size), 0.0); }
public static double[] imperativeInitilize(int size) { double[] values = new double[size]; for(int i = 0; i < values.length;i++) { values[i] = i; } return values; }
ArrayExamples { public static double[] imperativeInitilize(int size) { double[] values = new double[size]; for(int i = 0; i < values.length;i++) { values[i] = i; } return values; } }
ArrayExamples { public static double[] imperativeInitilize(int size) { double[] values = new double[size]; for(int i = 0; i < values.length;i++) { values[i] = i; } return values; }  }
ArrayExamples { public static double[] imperativeInitilize(int size) { double[] values = new double[size]; for(int i = 0; i < values.length;i++) { values[i] = i; } return values; }  static double[] simpleMovingAverage(double[] values, int n); static double[] parallelInitialize(int size); static double[] imperativeInitilize(int size); }
ArrayExamples { public static double[] imperativeInitilize(int size) { double[] values = new double[size]; for(int i = 0; i < values.length;i++) { values[i] = i; } return values; }  static double[] simpleMovingAverage(double[] values, int n); static double[] parallelInitialize(int size); static double[] imperativeInitilize(int size);  }