BaseSpatialWindow extends BaseFunction<T> { public static int innerLowerExtent(int period, int padding) { return (int)Math.ceil(padding/(double)period); } BaseSpatialWindow(ConfigSpatial config, P padding); @Override void _initialize(); static int innerLowerExtent(int period, int padding); static int innerUpperExtent( int windowLength , int period , int padding , int inputLength ); P getPadding();  }
@Test public void innerLowerExtent() { assertEquals(0,BaseSpatialWindow.innerLowerExtent(1,0)); assertEquals(0,BaseSpatialWindow.innerLowerExtent(3,0)); assertEquals(1,BaseSpatialWindow.innerLowerExtent(1,1)); assertEquals(3,BaseSpatialWindow.innerLowerExtent(1,3)); assertEquals(0,BaseSpatialWindow.innerLowerExtent(2,0)); assertEquals(1,BaseSpatialWindow.innerLowerExtent(2,1)); assertEquals(1,BaseSpatialWindow.innerLowerExtent(2,2)); assertEquals(2,BaseSpatialWindow.innerLowerExtent(2,3)); assertEquals(0,BaseSpatialWindow.innerLowerExtent(2,0)); assertEquals(1,BaseSpatialWindow.innerLowerExtent(2,1)); assertEquals(1,BaseSpatialWindow.innerLowerExtent(2,2)); assertEquals(2,BaseSpatialWindow.innerLowerExtent(2,3)); }