Home
last modified time | relevance | path

Searched refs:mean (Results 1 – 25 of 37) sorted by relevance

12

/cts/apps/CameraITS/tests/scene1_2/
Dtest_raw_exposure.py122 mean = means[i]
124 if max(mean) > min(black_levels) * _IMG_INCREASING_ATOL:
127 if math.isclose(max(mean), white_level, rel_tol=_IMG_SAT_RTOL):
129 white_level, max(mean))
132 if allow_under_saturated and min(mean-lower_thresh) < 0:
138 logging.debug('iso: %d, exp: %.3f, means: %s', sens, exps[i-1], mean)
140 if mean[ch] <= prev_mean[ch] * _IMG_DELTA_THRESH:
218 mean = mean_image[_IMG_STATS_GRID // 2, _IMG_STATS_GRID // 2]
220 s, (e_test[i] * _NS_TO_MS_FACTOR), str(mean))
221 means.append(mean)
Dtest_raw_sensitivity.py109 mean = mean_img[_IMG_STATS_GRID//2, _IMG_STATS_GRID//2,
113 logging.debug('cap: %d, mean: %.2f, var: %e', i, mean, var)
117 if math.isclose(mean, max(black_levels), rel_tol=_BLACK_LEVEL_RTOL):
137 vars_step_means.append(np.mean(vars_step))
Dtest_reprocess_noise_reduction.py171 rgb_avg_snrs = [np.mean(r_snrs), np.mean(g_snrs), np.mean(b_snrs)]
Dtest_param_noise_reduction.py127 rgb_snrs = [np.mean(r_snrs), np.mean(g_snrs), np.mean(b_snrs)]
Dtest_post_raw_sensitivity_boost.py205 mean = sum(vals) / len(vals)
206 logging.debug('%s channel vals %s mean %f', _COLORS[ch], vals, mean)
208 ratio_mean = vals[step] / mean
Dtest_raw_burst_sensitivity.py141 vars_step_means.append(np.mean(vars_step))
/cts/apps/CameraITS/tests/scene_flash/
Dtest_flash_strength.py141 for mean in range(1, len(formats_means)-1):
142 if formats_means[mean] >= formats_means[mean+1]:
153 for mean in range(1, len(formats_means)-1):
154 diff = abs(formats_means[mean] - formats_means[mean+1])
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DMagnitudeVerification.java98 float mean = mSum / mCount; in verify() local
99 boolean failed = Math.abs(mean - mExpected) > mThreshold; in verify()
102 stats.addValue(SensorStats.MAGNITUDE_KEY, mean); in verify()
106 mean, mExpected, mThreshold)); in verify()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DStatUtils.java21 double mean, double[] values, int numValues) { in calculateMeanAbsoluteDeviation() argument
24 sum += Math.abs(values[index] - mean); in calculateMeanAbsoluteDeviation()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationUpdateIntervalTest.java288 double mean = computeMean(deltas); in assertMeanAndStdev() local
289 double stdev = computeStdev(mean, deltas); in assertMeanAndStdev()
292 softAssert.assertTrue(provider + " provider mean too small: " + mean in assertMeanAndStdev()
293 + " (min: " + minMean + ")", mean >= minMean); in assertMeanAndStdev()
298 Log.i(TAG, provider + " provider mean: " + mean); in assertMeanAndStdev()
310 private static double computeStdev(double mean, List<Long> deltas) { in computeStdev() argument
313 double diff = d - mean; in computeStdev()
/cts/apps/CameraITS/tests/scene1_1/
Dtest_black_white.py143 for ch, mean in enumerate(black_means):
144 if mean >= _CH_THRESH_BLACK:
149 for ch, mean in enumerate(white_means):
150 if mean <= _CH_THRESH_WHITE:
Dtest_crop_region_raw.py153 img = img.reshape(h//2, 2, w//2, 2, 3).mean(3).mean(1)
179 diff_yuv = np.fabs((imgs2['yuv_full'] - imgs2['yuv_crop'])).mean()
180 diff_raw = np.fabs((imgs2['raw_full'] - imgs2['raw_crop'])).mean()
Dtest_crop_regions.py125 diff = np.fabs(tile_full - tile_crop).mean()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DStepSensorPermissionTestActivity.java232 float mean = 0; in variance() local
234 mean += val; in variance()
236 mean /= mMagnitudes.size(); in variance()
240 var += (val - mean) * (val - mean); in variance()
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py201 center_luma = numpy.mean(img_y[top:bottom, left:right])
202 center_r_g = numpy.mean(img_r_g[top:bottom, left:right])
203 center_b_g = numpy.mean(img_b_g[top:bottom, left:right])
240 block_y = numpy.mean(img_y[top:bottom, left:right])
241 block_r_g = numpy.mean(img_r_g[top:bottom, left:right])
242 block_b_g = numpy.mean(img_b_g[top:bottom, left:right])
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUtil.java24 public static double mean(double[] data) { in mean() method in Util
25 Mean mean = new Mean(); in mean() local
26 return mean.evaluate(data); in mean()
DWavAnalyzer.java86 coeffOfVar[i] = Util.std(powerAtFreq) / Util.mean(powerAtFreq); in isConsistent()
88 if (Util.mean(coeffOfVar) > 1.0) { in isConsistent()
109 if (Util.mean(dB) - Util.mean(noiseDB) < Common.SIGNAL_MIN_STRENGTH_DB_ABOVE_NOISE) { in responsePassesHifiTest()
121 if (Util.mean(responseInRange) < threshold) { in responsePassesHifiTest()
/cts/apps/CameraITS/utils/
Dsensor_fusion_utils.py470 x0 = (x-x.mean(0)) / np.sqrt(((x-x.mean(0))**2.0).sum())
471 y0 = (y-y.mean(0)) / np.sqrt(((y-y.mean(0))**2.0).sum())
639 (spatial_distances - np.mean(spatial_distances)) ** 2
668 (small_spatial_distances - np.mean(small_spatial_distances)) ** 2
736 x = x.reshape(nevents//_NUM_GYRO_PTS_TO_AVG, _NUM_GYRO_PTS_TO_AVG).mean(1)
737 y = y.reshape(nevents//_NUM_GYRO_PTS_TO_AVG, _NUM_GYRO_PTS_TO_AVG).mean(1)
738 z = z.reshape(nevents//_NUM_GYRO_PTS_TO_AVG, _NUM_GYRO_PTS_TO_AVG).mean(1)
Dcapture_read_noise_utils.py217 mean = np.mean(channel_img[:, :, ch])
219 norm_var = var / ((white_level - mean)**2)
222 'mean': mean,
380 np.mean(img), np.var(img), np.min(img), np.max(img))
/cts/apps/CameraITS/tests/scene9/
Dtest_jpeg_quality.py156 lumas.append(np.mean(luma))
157 chromas.append(np.mean(chroma))
170 chromas.append(np.mean(matrix))
175 lumas.append(np.mean(matrix))
/cts/tests/media/common/src/android/mediav2/common/cts/
DVideoErrorManager.java115 double mean = ((double) sum) / (bSize * bSize); in computeFrameVariance() local
116 double squareOfMean = mean * mean; in computeFrameVariance()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/
DRenderer.cpp414 double mean = static_cast<double>(sum) / static_cast<double>(durations.size()); in getFrameStats() local
421 varianceSum += (duration - mean) * (duration - mean); in getFrameStats()
/cts/apps/CameraITS/tools/
Drun_sensor_fusion.py196 len(times), np.mean(times), np.std(times))
/cts/apps/CameraITS/tests/scene3/
Dtest_edge_enhancement.py101 return {'edge_mode': edge_mode_res, 'sharpness': np.mean(sharpness_list)}
/cts/tests/sensor/src/android/hardware/cts/helpers/
DSensorCtsHelper.java106 double mean = getMean(collection); in getVariance() local
109 double difference = mean - value.doubleValue(); in getVariance()

12