class ArrayUtils {

	public static int[] fuzzyIntervalSearch(final float[] base, final float startValue, final float endValue) {

		// no point in searching an empty array
		if (base == null || base.length == 0)
			return null;
		// quick check if the searched interval makes sense or is outside the existing array
		if (startValue > endValue || endValue < base[0] || startValue > base[base.length - 1])
			return null;
		return searchStartAndEnd(base, startValue, endValue, 0, base.length - 1);
	}

}