src/main/java/com/xceptance/neodymium/visual/ai/util/Helper.java
/***
     * Check the range around value1 with percentage difference through {@link Helper#getPercentageDifference(double)}
     * to value2.
     * 
     * @param value1
     *            Double value to vary by.
     * @param value2
     *            Double value to check against.
     * @return true if the values are in range to another, false otherwise.
     */
Check the range around value1 with percentage difference through  Helper#getPercentageDifference(double)
to value2.

@param value1
Double value to vary by.
@param value2
Double value to check against.
@return true if the values are in range to another, false otherwise.
Check the range around value1 with percentage difference through Helper#getPercentageDifference ( double ) to value2 . @param value1 Double value to vary by . @param value2 Double value to check against . @return true if the values are in range to another false otherwise .
public static boolean isInRange(double value1, double value2)
    {
        if (value2 > (value1 - getPercentageDifference(value1)) &&
            value2 < (value1 + getPercentageDifference(value1)))
        {
            return true;
        }
        return false;
    }
public static boolean isInRange ( double value1 , double value2 ) { if ( value2 > ( value1 - getPercentageDifference ( value1 ) ) && value2 < ( value1 + getPercentageDifference ( value1 ) ) ) { return true ; } return false ; }
Check the range around value1 with percentage difference through {@link Helper#getPercentageDifference(double)}
 to value2.
Check the range around value1 with percentage difference through { @link Helper#getPercentageDifference ( double ) } to value2 .