/external/autotest/client/cros/cellular/mbim_compliance/ |
H A D | mbim_data_channel.py | 6 import numpy namespace 68 numpy.set_printoptions(formatter={'int':lambda x: hex(int(x))}, 72 written, ntb_length, numpy.array(ntb)) 98 numpy.set_printoptions(formatter={'int':lambda x: hex(int(x))}, 101 ntb_length, numpy.array(ntb))
|
H A D | mbim_channel_endpoint.py | 10 import numpy namespace 189 numpy.set_printoptions(formatter={'int':lambda x: hex(int(x))}, 192 len(response), numpy.array(response)) 209 numpy.set_printoptions(formatter={'int':lambda x: hex(int(x))}, 213 actual_written, len(payload), numpy.array(payload))
|
/external/autotest/client/cros/ |
H A D | http_speed.py | 9 import numpy.random namespace 40 data = numpy.random.bytes(size)
|
H A D | power_status.py | 5 import collections, ctypes, fcntl, glob, logging, math, numpy, os, re, struct namespace 1441 t = numpy.array(self.times) 1454 meas = numpy.array(domain_readings) 1468 meas_array = meas[numpy.bitwise_and(tstart < t, t < tend)]
|
/external/autotest/client/site_tests/power_CameraSuspend/ |
H A D | power_CameraSuspend.py | 6 import numpy namespace 79 if last_image is not None and numpy.array_equal(image, last_image):
|
/external/autotest/client/site_tests/power_SuspendStress/ |
H A D | power_SuspendStress.py | 5 import logging, numpy, random, time namespace 96 keyvals[key + '_mean'] = numpy.mean(values) 97 keyvals[key + '_stddev'] = numpy.std(values) 98 keyvals[key + '_min'] = numpy.amin(values) 99 keyvals[key + '_max'] = numpy.amax(values)
|
/external/webrtc/tools/cpu/ |
H A D | cpu_mon.py | 15 import numpy namespace 32 (self.label, numpy.average(self.samples), 33 numpy.median(self.samples), 34 numpy.min(self.samples), numpy.max(self.samples))) 37 return numpy.max(self.samples)
|
/external/autotest/client/site_tests/graphics_WebGLManyPlanetsDeep/ |
H A D | graphics_WebGLManyPlanetsDeep.py | 6 import numpy namespace 81 arr = numpy.array([[v['frame_elapsed_time'], v['js_elapsed_time']]
|
/external/autotest/server/brillo/ |
H A D | audio_utils.py | 9 import numpy namespace 204 fft_reference = numpy.fft.rfft(reference_data) 205 fft_rec = numpy.fft.rfft(rec_data) 206 fft_freqs_reference = numpy.fft.rfftfreq(len(reference_data), 208 fft_freqs_rec = numpy.fft.rfftfreq(len(rec_data), 1.0 / sample_rate) 212 numpy.argmax(numpy.abs(fft_reference))] 213 abs_fft_rec = numpy.abs(fft_rec) 214 freq_rec = fft_freqs_rec[numpy.argmax(abs_fft_rec)] 226 fft_rec_peak_val = numpy [all...] |
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
H A D | plot_dynamics.py | 16 import numpy namespace 82 x = numpy.array(x) 83 y = numpy.array(y)
|
/external/autotest/client/cros/audio/ |
H A D | audio_analysis.py | 8 import numpy namespace 35 @returns: A numpy array containing normalized signal. The normalized signal 39 signal = numpy.array(signal) 73 signal_rms = numpy.linalg.norm(signal) / numpy.sqrt(len(signal)) 82 y_conv_w = signal * numpy.hanning(len(signal)) 88 y_f = 2.0 / length * numpy.fft.rfft(y_conv_w) 91 abs_y_f = numpy.abs(y_f) 119 @returns: A numpy array containing frequency corresponding to 120 numpy [all...] |
H A D | audio_quality_measurement_unittest.py | 8 import numpy namespace 17 numpy.random.seed(0) 32 noise = standard_noise * numpy.random.standard_normal() 63 numpy.random.seed(0) 81 noise = noise_amplitude * numpy.random.standard_normal() 130 self.y[j] = self.amplitude * (3 + numpy.random.uniform(-1, 1))
|
H A D | check_quality.py | 12 import numpy namespace 157 max_abs = max(numpy.abs(signal))
|
H A D | audio_analysis_unittest.py | 3 import numpy namespace 14 numpy.random.seed(0) 75 array = numpy.random.uniform(0, 1, 1000000) 93 noise = numpy.random.standard_normal(samples) * 0.005 94 x = numpy.linspace(0.0, (samples - 1) * 1.0 / rate, samples) 95 y = (coeff_1 * numpy.sin(freq_1 * 2.0 * numpy.pi * x) + 96 coeff_2 * numpy.sin(freq_2 * 2.0 * numpy.pi * x)) + noise 135 noise = numpy [all...] |
H A D | audio_quality_measurement.py | 10 import numpy namespace 149 x = numpy.asarray(x) 150 if numpy.iscomplexobj(x): 157 Xf = numpy.fft.fft(x, N, axis=axis) 158 h = numpy.zeros(N) 170 x = numpy.fft.ifft(Xf * h, axis=axis) 188 noise = noise_level * numpy.random.standard_normal() 296 result = numpy.asarray(result) 297 amplitude = numpy.abs(result) 298 phase = numpy [all...] |
H A D | audio_helper.py | 8 import numpy namespace 605 Refer to manual of numpy.correlate for detail of correlation. 641 norm_a = numpy.linalg.norm(signal_a) 642 norm_b = numpy.linalg.norm(signal_b) 648 correlation = numpy.correlate(signal_a, signal_b, 'full')
|
/external/toolchain-utils/crb/ |
H A D | table_formatter.py | 1 import numpy namespace 223 return numpy.average(sorted_numbers) 244 ### ret += " %f" % numpy.std(float_results)
|
/external/v8/tools/ignition/ |
H A D | bytecode_dispatches_report.py | 13 import numpy namespace 131 counters_matrix = numpy.empty([len(labels), len(labels)], dtype=int) 140 counters_matrix = numpy.flipud(counters_matrix) 158 ticks=numpy.arange(0.5, len(xlabels)), 166 ticks=numpy.arange(0.5, len(ylabels)),
|
/external/autotest/client/site_tests/graphics_WebGLAquarium/ |
H A D | sampler.py | 6 import numpy namespace 286 self.avg = numpy.mean(self.duration_data) 287 self.stdev = numpy.std(self.duration_data)
|
/external/autotest/client/site_tests/performance_InboxInputLatency/ |
H A D | performance_InboxInputLatency.py | 6 import numpy namespace 142 value = getattr(numpy, operator)(latency_data)
|
/external/autotest/client/site_tests/platform_CompressedSwapPerf/ |
H A D | platform_CompressedSwapPerf.py | 7 import logging, numpy, os, shutil, socket namespace 37 exp_value = numpy.random.geometric(0.25) - 1 47 return numpy.random.randint(0, length)
|
/external/v8/tools/ |
H A D | callstats.py | 30 import numpy namespace 314 average = numpy.average(data) 315 median = numpy.median(data) 316 low = numpy.min(data) 317 high= numpy.max(data) 321 stddev = numpy.std(data, ddof=1)
|
/external/autotest/client/site_tests/power_LoadTest/ |
H A D | power_LoadTest.py | 5 import collections, logging, numpy, os, tempfile, time namespace 336 np = numpy.array(stats) 396 voltage_np = numpy.array(self._stats['v_voltage_now']) 732 time_measurements = numpy.array(time_measurements)
|
/external/webrtc/webrtc/video/ |
H A D | full_stack_plot.py | 33 import numpy namespace 270 x = numpy.array(range(self.cycle_length)) 272 x = numpy.array(range(self.offset, self.offset + len(line.values))) 273 y = numpy.array(line.values)
|
/external/autotest/client/cros/multimedia/ |
H A D | display_facade_native.py | 8 import numpy namespace 435 data = numpy.fliplr(data.reshape(-1, 3)).reshape(data.shape)
|