Lines Matching refs:measurements
326 def computeBaselineState(self, measurements): argument
341 if len(measurements) < 100:
352 sorted_measurements = sorted(measurements)
353 number_measurements = len(measurements)
384 measurements)):
398 float(right_index - left_index) / len(measurements)))
400 plt.plot(measurements)
463 measurements = self.collectMeasurements(
466 if self.computeBaselineState(measurements)[0] is True:
473 measurements = self.collectMeasurements(
477 not measurements, "No background measurements could be taken")
478 retval = self.computeBaselineState(measurements)
481 if measurements and LOG_DATA_TO_FILE:
483 for m in measurements:
509 measurements = self.collectMeasurements(NUMBER_MEASUREMENTS,
513 measurements, PowerTest.MAX_PERCENTILE_AP_SCREEN_OFF_AMPS,
538 measurements = []
542 while len(measurements) < measurementCount and tries < 5:
554 measurements.append(sub_avg)
562 print ("MEASURED[%d]: %f" % (len(measurements), measurements[-1]))
566 self.reportErrorRaiseExceptionIf(measurementCount > len(measurements),
568 return measurements
653 measurements = self.collectMeasurements(PowerTest.SAMPLE_COUNT_NOMINAL,
656 if measurements and LOG_DATA_TO_FILE:
659 for m in measurements:
667 not measurements, "No measurements could be taken for %s" % sensor)
668 avg = sum(measurements) / len(measurements)
669 squared = [(m - avg) * (m - avg) for m in measurements]
674 max_power = max(measurements) - avg