DifferenceStationaryModelHelper { public static Matrix last(final int len, final int step) { int nc = len, nr = nc / step; Matrix J = new Matrix(nr, nc); for (int r = 0, c = step - 1; r < nr; ++r, c += step) { J.set(r, c, 1); } return J; } DifferenceStationaryModelHelper(final DataBlock y, final Matrix X, final Matrix transformation, final BackFilter difference);  DifferenceStationaryModelHelper(final IModelProvider provider); static Matrix missings(final IReadDataBlock data); static Matrix missings(final IReadDataBlock data, final int[] inits); static Matrix last(final int len, final int step); static Matrix first(final int len, final int step); static Matrix aggregation(final int len, final int nagg); static int[] searchDefaultInitialValues(IReadDataBlock y, int d); Matrix getB(); Matrix getD(); ConcentratedLikelihood compute(Matrix Vw); Matrix computeProjections(Matrix Z, Matrix Vw);  }
@Test public void testLast0() { Matrix j = DifferenceStationaryModelHelper.last(12, 4); assertTrue(j.getRowsCount() == 3); }
@Test public void testLast1() { Matrix j = DifferenceStationaryModelHelper.last(11, 4); assertTrue(j.getRowsCount() == 2); }