public static boolean contains(double[] array, double valueToFind, double tolerance) {
        return indexOf(array, valueToFind, 0, tolerance) != INDEX_NOT_FOUND;
    }
<p>Checks if a value falling within the given tolerance is in the
given array.  If the array contains a value within the inclusive range
defined by (value - tolerance) to (value + tolerance).</p>

<p>The method returns {@code false} if a {@code null} array
is passed in.</p>

@param array  the array to search
@param valueToFind  the value to find
@param tolerance  the array contains the tolerance of the search
@return true if value falling within tolerance is in array
android/android_framework/base/src/main/java/lang3/ArrayUtils.java