@Test public void lineDataFromList() { ListNumber data = new ArrayDouble(1,2,3); Point2DDataset dataset = Point2DDatasets.lineData(data); assertEquals(3, dataset.getCount()); assertEquals(0.0, dataset.getXValues().getDouble(0), 0.001); assertEquals(1.0, dataset.getXValues().getDouble(1), 0.001); assertEquals(2.0, dataset.getXValues().getDouble(2), 0.001); assertEquals(1.0, dataset.getYValues().getDouble(0), 0.001); assertEquals(2.0, dataset.getYValues().getDouble(1), 0.001); assertEquals(3.0, dataset.getYValues().getDouble(2), 0.001); }
public static Point2DDataset lineData(final double[] data) { return lineData(new ArrayDouble(data)); }
Point2DDatasets { public static Point2DDataset lineData(final double[] data) { return lineData(new ArrayDouble(data)); } }
Point2DDatasets { public static Point2DDataset lineData(final double[] data) { return lineData(new ArrayDouble(data)); }  }
Point2DDatasets { public static Point2DDataset lineData(final double[] data) { return lineData(new ArrayDouble(data)); }  static Point2DDataset lineData(final double[] data); static Point2DDataset lineData(final ListNumber data); static Point2DDataset lineData(final double[] data, final double xInitialOffset, final double xIncrementSize); static Point2DDataset lineData(final ListNumber data, final double xInitialOffset, final double xIncrementSize); static Point2DDataset lineData(final double[] x, final double[] y); static Point2DDataset lineData(final Range xRange, final ListNumber y); static Point2DDataset lineData(final ListNumber x, final ListNumber y); }
Point2DDatasets { public static Point2DDataset lineData(final double[] data) { return lineData(new ArrayDouble(data)); }  static Point2DDataset lineData(final double[] data); static Point2DDataset lineData(final ListNumber data); static Point2DDataset lineData(final double[] data, final double xInitialOffset, final double xIncrementSize); static Point2DDataset lineData(final ListNumber data, final double xInitialOffset, final double xIncrementSize); static Point2DDataset lineData(final double[] x, final double[] y); static Point2DDataset lineData(final Range xRange, final ListNumber y); static Point2DDataset lineData(final ListNumber x, final ListNumber y);  }