protected int effectiveBandSize(final int dim1,final int dim2){
  if (bandSize == Double.POSITIVE_INFINITY) {
    return (dim1 > dim2) ? dim1 : dim2;
  }
  if (bandSize >= 1.) {
    return (int)bandSize;
  }
  return (int)Math.ceil((dim1 >= dim2 ? dim1 : dim2) * bandSize);
}

protected int effectiveBandSize ( final int dim1 , final int dim2 ) { if ( bandSize == Double . POSITIVE_INFINITY ) { return ( dim1 > dim2 ) ? dim1 : dim2 ; } if ( bandSize >= 1. ) { return ( int ) bandSize ; } return ( int ) Math . ceil ( ( dim1 >= dim2 ? dim1 : dim2 ) * bandSize ) ; }
compute the effective band size .
