MatrixMLDataSet dset = new MatrixMLDataSet(DATA1,1,1);
dset.setLagWindowSize(1);
Assert.assertEquals(9, dset.size());
MLDataPair p1 = dset.get(0);
Assert.assertEquals(1.0, p1.getInput().getData(0),Encog.DEFAULT_DOUBLE_EQUAL);
Assert.assertEquals(2.0, p1.getInput().getData(1),Encog.DEFAULT_DOUBLE_EQUAL);
Assert.assertEquals(10.0, p1.getIdeal().getData(0),Encog.DEFAULT_DOUBLE_EQUAL);
MLDataPair p2 = dset.get(1);
Assert.assertEquals(2.0, p2.getInput().getData(0),Encog.DEFAULT_DOUBLE_EQUAL);
Assert.assertEquals(3.0, p2.getInput().getData(1),Encog.DEFAULT_DOUBLE_EQUAL);
Assert.assertEquals(20.0, p2.getIdeal().getData(0),Encog.DEFAULT_DOUBLE_EQUAL);
MLDataPair p3 = dset.get(2);
Assert.assertEquals(3.0, p3.getInput().getData(0),Encog.DEFAULT_DOUBLE_EQUAL);
Assert.assertEquals(4.0, p3.getInput().getData(1),Encog.DEFAULT_DOUBLE_EQUAL);
Assert.assertEquals(30.0, p3.getIdeal().getData(0),Encog.DEFAULT_DOUBLE_EQUAL);
}