code: private static float[] normalize(float[] in) {
  		float[] out = new float[in.length];
  		for (int i = 0; i < in.length; i++) {
  			out[i] = (in[i] / 255.0f);
  		}
  		return out;
  	}
docs: Returns the array normalized from 0-255 to 0-1.0.