code: static int indexOfSerial(final double[] incr, final double v) {
  		int index = -1;
  		for (int i = 0; i < incr.length && index == -1; ++i) {
  			if (incr[i] >= v) {
  				index = i;
  			}
  		}
  
  		return index;
  	}
docs: Perform a serial-search on the summed probability array.