Resize extends Filter2D { public Resize(DataSource data, int cols, int rows) { super(data, Mode.ZERO); this.cols = cols; this.rows = rows; filter(); } Resize(DataSource data, int cols, int rows); @Override int getColumnCount(); @Override int getRowCount(); @Override Comparable<?> get(int col, int row);  }
@Test public void testResize() { assertFiltered(dataEmpty, 0, 1, new double[] { 0.0/9.0 }); assertFiltered(dataHorizontal, 1, 1, new double[] { 3.0/9.0 }); assertFiltered(dataVertical, 1, 1, new double[] { 3.0/9.0 }); assertFiltered(dataDiagonal, 1, 1, new double[] { 3.0/9.0 }); }