public static int lastIndexOf(double[] array, double valueToFind, double tolerance) {
        return lastIndexOf(array, valueToFind, Integer.MAX_VALUE, tolerance);
    }
<p>Finds the last index of the given value within a given tolerance in the array.
This method will return the index of the last value which falls between the region
defined by valueToFind - tolerance and valueToFind + tolerance.</p>

<p>This method returns {@link #INDEX_NOT_FOUND} ({@code -1}) for a {@code null} input array.</p>

@param array  the array to search through for the object, may be {@code null}
@param valueToFind  the value to find
@param tolerance tolerance of the search
@return the index of the value within the array,
 {@link #INDEX_NOT_FOUND} ({@code -1}) if not found or {@code null} array input
android/android_framework/base/src/main/java/lang3/ArrayUtils.java