Home
last modified time | relevance | path

Searched refs:np (Results 1 – 17 of 17) sorted by relevance

/cts/suite/audio_quality/test_description/processing/
Dcalc_thd.py17 import numpy as np namespace
25 fftData = abs(fft.fft(data * np.hanning(len(data))))
31 np.argmax(fftData[baseI - iMargain /2: baseI + iMargain/2])
32 peakLoc = np.argmax(fftData[:fftLen])
53 index = np.linspace(0.0, samples, num=samples, endpoint=False)
55 multiplier = 2.0 * np.pi * signalFrequency / float(samplingRate)
56 data = np.sin(index * multiplier)
Dcalc_delay.py17 import numpy as np namespace
29 return np.dot(data0[n:N+n], data1reversed)
57 return np.argmax(result)
68 index = np.linspace(0.0, samples, num=samples, endpoint=False)
70 multiplier = 2.0 * np.pi * signalFrequency / float(samplingRate)
71 data0 = np.sin(index * multiplier)
Dexample.py18 import numpy as np namespace
45 stereo = stereoInt.astype(np.int16)
48 mono = monoInt.astype(np.int16)
Dgen_random.py18 import numpy as np namespace
32 result = np.zeros(samples * 2 if stereo else samples, dtype=np.int16)
33 randomSignal = np.random.normal(scale = peakAmpl * 2 / 3, size=samples)
Dcheck_spectrum_playback.py18 import numpy as np namespace
54 spectrum = np.sqrt(abs(Phh[iLow:iHigh]))
55 spectrumMean = np.mean(spectrum)
63 spectrumResult = np.zeros(len(spectrum), dtype=np.int16)
Dcheck_spectrum.py18 import numpy as np namespace
59 amplitudeRatio = np.sqrt(abs(Pdd[iLow:iHigh]/Phh[iLow:iHigh]))
60 ratioMean = np.mean(amplitudeRatio)
68 RatioResult = np.zeros(len(amplitudeRatio), dtype=np.int16)
76 monoData = np.zeros(n)
Dplayback_thd.py18 import numpy as np namespace
Drecording_thd.py18 import numpy as np namespace
/cts/apps/CameraITS/tests/dng_noise_model/
Ddng_noise_model.py26 import numpy as np namespace
56 f = np.array([-1, 1]).astype('float32')
59 f = np.convolve(f, f)
60 f = np.convolve(f, f)
78 f = f/math.sqrt(np.dot(f, f))
155 np.mean(tile(p, tile_size), axis=(0, 1)).flatten()
157 np.var(tile(hp, tile_size), axis=(0, 1)).flatten()
192 sens = np.asarray([e[0] for e in measured_models])
193 sens_sq = np.square(sens)
196 gains = np.asarray([s[0] for s in samples])
[all …]
/cts/suite/audio_quality/test_description/conf/
Dcheck_conf.py18 import numpy as np namespace
25 a = np.array([1,2,3])
/cts/suite/audio_quality/test_description/
Dprocessing_main.py18 import numpy as np namespace
174 data = np.fromstring(raw, dtype=np.int16)
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DNinePatchDrawableTest.java366 NinePatch np = new NinePatch(bitmap, bitmap.getNinePatchChunk(), null); in getNinePatchDrawable() local
367 return new NinePatchDrawable(mResources, np); in getNinePatchDrawable()
/cts/tests/tests/media/assets/
DfileSequence1.ts36 |�-np����a��I�@��g�Jޙ��孻S�������6���k�a�Bfs�G����O�9�B�"�o<�R&�+�x��u�`QI��V�rF&�;��{;�…
Dsegment000001.ts2024 ���T-껌3Q��4��o��jnF�DoE�V��8�����w�}[U��ŝ�`0(Q'��ΣG�,np��@,���hՄ�hY�S��pa4<��\�Uz�<dێ�;��L
DfileSequence0.ts387 �c��wo1�X�7�np��Ql�5�xU?��|�7�uhj�>�����f���lB�q������&�������?����X�A��k�f�d���k�.�xG…
Dsegment000000.ts97 �c��wo1�X�7�np��Ql�5�xU?��|�7�uhj�>����G��f���lB�q������&�������?����X�A��k�f�d���k�.�x…
/cts/tests/tests/media/res/raw/
Dtestmp3_3.raw1 …gjdYixbUz1gQABFgkp2rAgAAaqpmI0sfsZ05skRWi1eHnXiwXxmDwn/37dnYQt04cyqidPmi1/2np+lK0b7W32////29P7en//…