Home
last modified time | relevance | path

Searched refs:squaredDiffs (Results 1 – 2 of 2) sorted by relevance

/cts/libs/commonutil/src/com/android/cts/util/
DStatisticsUtils.java78 ArrayList<Double> squaredDiffs = new ArrayList<Double>(); in getVariance() local
81 squaredDiffs.add(Math.pow(difference, 2)); in getVariance()
85 for (Double value : squaredDiffs) { in getVariance()
88 return sum / (squaredDiffs.size() - 1); in getVariance()
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/
DSensorCtsHelper.java82 ArrayList<Double> squaredDiffs = new ArrayList<Double>(); in getVariance() local
85 squaredDiffs.add(Math.pow(difference, 2)); in getVariance()
89 for (Double value : squaredDiffs) { in getVariance()
92 return sum / (squaredDiffs.size() - 1); in getVariance()