Searched defs:numpy (Results 1 - 25 of 28) sorted by relevance

12

/external/autotest/client/cros/cellular/mbim_compliance/
H A Dmbim_data_channel.py6 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 Dmbim_channel_endpoint.py10 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 Dhttp_speed.py9 import numpy.random namespace
40 data = numpy.random.bytes(size)
H A Dpower_status.py5 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 Dpower_CameraSuspend.py6 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 Dpower_SuspendStress.py5 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 Dcpu_mon.py15 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 Dgraphics_WebGLManyPlanetsDeep.py6 import numpy namespace
81 arr = numpy.array([[v['frame_elapsed_time'], v['js_elapsed_time']]
/external/autotest/server/brillo/
H A Daudio_utils.py9 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 Dplot_dynamics.py16 import numpy namespace
82 x = numpy.array(x)
83 y = numpy.array(y)
/external/autotest/client/cros/audio/
H A Daudio_analysis.py8 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 Daudio_quality_measurement_unittest.py8 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 Dcheck_quality.py12 import numpy namespace
157 max_abs = max(numpy.abs(signal))
H A Daudio_analysis_unittest.py3 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 Daudio_quality_measurement.py10 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 Daudio_helper.py8 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 Dtable_formatter.py1 import numpy namespace
223 return numpy.average(sorted_numbers)
244 ### ret += " %f" % numpy.std(float_results)
/external/v8/tools/ignition/
H A Dbytecode_dispatches_report.py13 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 Dsampler.py6 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 Dperformance_InboxInputLatency.py6 import numpy namespace
142 value = getattr(numpy, operator)(latency_data)
/external/autotest/client/site_tests/platform_CompressedSwapPerf/
H A Dplatform_CompressedSwapPerf.py7 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 Dcallstats.py30 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 Dpower_LoadTest.py5 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 Dfull_stack_plot.py33 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 Ddisplay_facade_native.py8 import numpy namespace
435 data = numpy.fliplr(data.reshape(-1, 3)).reshape(data.shape)

Completed in 7275 milliseconds

12