class grid{ float[] values; int[] eightBitValues; float maxValue; float minValue; float avgValue; float cogX, cogY; int cols; int rows; grid(int i, int j){ cols=i; rows=j; cogX=cogY=0.0f; values = new float[cols*rows]; eightBitValues = new int[cols*rows]; minValue=maxValue=avgValue=0.0f; for(int counter=0; counter