code: public  double ComputeHoeffdingBound(double range, double confidence,
  		            double n) {
  		return Math.sqrt(((range * range) * Math.log(1.0 / confidence))
  		                / (2.0 * n));
  		}
docs: Hoeffding Bound