Searched refs:average (Results 1 – 6 of 6) sorted by relevance
22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale() local23 average /= 3; in verifyPixelGrayScale()24 return Math.abs(Color.red(color) - average) <= threshold in verifyPixelGrayScale()25 && Math.abs(Color.green(color) - average) <= threshold in verifyPixelGrayScale()26 && Math.abs(Color.blue(color) - average) <= threshold; in verifyPixelGrayScale()
168 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify()169 return average.isPresent() && average.getAsDouble() > LIGHT_NAVBAR_SUPPORTED_THRESHOLD; in verify()180 final OptionalDouble average = Arrays.stream(diffs).filter(diff -> diff != 0).average(); in verify()181 return average.isPresent() in verify()182 && Math.abs(average.getAsDouble()) < LIGHT_NAVBAR_NOT_SUPPORTED_THRESHOLD; in verify()
407 double average = 0.0; in execute() local410 average += deltaList.get(i); in execute()412 average /= deltaList.size(); in execute()417 double diff = deltaList.get(i) - average; in execute()422 Log.i(TAG, String.format("average = %.2f, stddev = %.2f", average, stddev)); in execute()
887 double average = mSumX / mNum; in getStdev() local888 return Math.sqrt(mSumXX / mNum - average * average); in getStdev()924 double average = mSumX / mNum; in movingAverageOverSum() local926 return new Stats(new double[] { average }); in movingAverageOverSum()928 int samples = (int)Math.ceil((mSumX - window) / average); in movingAverageOverSum()975 foot -= average; in movingAverageOverSum()976 space += average; in movingAverageOverSum()
818 return numpy.average(numpy.sqrt(gy*gy + gx*gx))