Searched refs:average (Results 1 – 7 of 7) sorted by relevance
/cts/common/util/tests/src/com/android/compatibility/common/util/ |
D | StatTest.java | 55 double average = Stat.getAverage(values); in testGetAverage() local 56 assertEquals(2.0, average, 0.00001); in testGetAverage() 59 average = Stat.getAverage(values); in testGetAverage() 60 assertEquals(3.0, average, 0.00001); in testGetAverage() 63 average = Stat.getAverage(values); in testGetAverage() 64 assertEquals(6.0, average, 0.00001); in testGetAverage()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | CompareUtils.java | 22 int average = Color.red(color) + Color.green(color) + Color.blue(color); in verifyPixelGrayScale() local 23 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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Correlation.java | 59 double average = 0; in computeCorrelation() local 63 average += mDataAutocorrelated[i]; in computeCorrelation() 72 average = average/mDataAutocorrelated.length; in computeCorrelation() 76 log(String.format(" average : %.3f rms: %.3f", average, rms)); in computeCorrelation() 79 if (average>0) { in computeCorrelation() 82 double raw = (rms-average) /(factor*average); in computeCorrelation()
|
/cts/common/util/src/com/android/compatibility/common/util/ |
D | Stat.java | 39 public StatResult(double average, double min, double max, double stddev, int dataCount) { in StatResult() argument 40 mAverage = average; in StatResult() 52 double average = data[0]; in getStat() local 56 average += data[i]; in getStat() 64 average /= data.length; in getStat() 67 double diff = average - data[i]; in getStat() 72 return new StatResult(average, min, max, stddev, data.length); in getStat()
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | MediaUtils.java | 727 double average = mSumX / mNum; in getStdev() local 728 return Math.sqrt(mSumXX / mNum - average * average); in getStdev() 764 double average = mSumX / mNum; in movingAverageOverSum() local 766 return new Stats(new double[] { average }); in movingAverageOverSum() 768 int samples = (int)Math.ceil((mSumX - window) / average); in movingAverageOverSum() 815 foot -= average; in movingAverageOverSum() 816 space += average; in movingAverageOverSum()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | BurstCaptureRawTest.java | 398 double average = 0.0; in execute() local 401 average += deltaList.get(i); in execute() 403 average /= deltaList.size(); in execute() 408 double diff = deltaList.get(i) - average; in execute() 413 Log.i(TAG, String.format("average = %.2f, stddev = %.2f", average, stddev)); in execute()
|
/cts/apps/CameraITS/pymodules/its/ |
D | image.py | 719 return numpy.average(numpy.sqrt(gy*gy + gx*gx))
|