Home
last modified time | relevance | path

Searched refs:samples (Results 1 – 25 of 80) sorted by relevance

1234

/cmsis-dsp-3.5.0/cmsisdsp/
Ddatatype.py20 def convert(samples,format): argument
35 return(f.toQ31(np.array(samples)))
37 return(f.toQ15(np.array(samples)))
39 return(f.toQ7(np.array(samples)))
41 return(np.array(samples).astype(dtype=np.float64))
43 return(np.array(samples).astype(dtype=np.float32))
45 return(np.array(samples).astype(dtype=np.float16))
/cmsis-dsp-3.5.0/Testing/PatternGeneration/
DDecimate.py29 samples=np.random.randn(NBSAMPLES)
32 samples = Tools.normalize(samples)
36 config.writeInput(1, samples,"Samples")
130 samples=np.random.randn(nbsamples)
131 samples=Tools.normalize(samples)
135 output=upfirdn(b,samples,up=1,down=q,axis=-1,mode='constant',cval=0)
139 allsamples += list(samples)
145 ref += [q,len(b),len(samples),len(output)]
185 samples=np.random.randn(nbsamples)
186 samples=Tools.normalize(samples)
[all …]
DBIQUAD.py22 samples=np.random.randn(NBSAMPLES)
25 samples = Tools.normalize(samples)
30 config.writeInput(1, samples,"Samples")
136 samples=np.random.randn(b)
137 samples = Tools.normalize(samples)
142 stereo = np.empty((samples.size + samplesB.size,), dtype=samples.dtype)
143 stereo[0::2] = samples
149 output=signal.sosfilt(sos,samples)
160 allsamples += list(samples)
DFastMath.py134 samples=np.random.randn(NBSAMPLES)
135 samples = np.abs(Tools.normalize(samples))
136 config.writeInput(1, samples,"Samples")
143 samples=cartesian(numerator,denominator)
144 numerator=[x[0] for x in samples]
145 denominator=[x[1] for x in samples]
147 result=[divide(format,x) for x in samples]
287 samples=np.concatenate((np.array([0.0,1.0]),np.linspace(-0.4,0.4)))
288 config.writeInput(1, samples,"ExpInput")
289 v = np.exp(samples)
[all …]
DController.py15 samples=np.random.randn(NBSAMPLES)
16 samples = Tools.normalize(samples)
17 config.writeInput(1, samples,"Samples")
DFIR.py21 samples=np.random.randn(NBSAMPLES)
25 samples = Tools.normalize(samples)
32 config.writeInput(1, samples,"Samples")
/cmsis-dsp-3.5.0/Testing/Source/Benchmarks/
DTransformQ15.cpp47 samples.reload(TransformQ15::INPUTC_Q15_ID,mgr,2*this->nbSamples); in setUp()
50 this->pSrc=samples.ptr(); in setUp()
58 samples.reload(TransformQ15::INPUTR_Q15_ID,mgr,this->nbSamples); in setUp()
61 this->pSrc=samples.ptr(); in setUp()
68 samples.reload(TransformQ15::INPUTR_Q15_ID,mgr,this->nbSamples); in setUp()
73 this->pSrc=samples.ptr(); in setUp()
91 samples.reload(TransformQ15::INPUTC_Q15_ID,mgr,2*this->nbSamples); in setUp()
94 this->pSrc=samples.ptr(); in setUp()
108 samples.reload(TransformQ15::INPUTC_Q15_ID,mgr,2*this->nbSamples); in setUp()
111 this->pSrc=samples.ptr(); in setUp()
DTransformQ31.cpp46 samples.reload(TransformQ31::INPUTC_Q31_ID,mgr,2*this->nbSamples); in setUp()
49 this->pSrc=samples.ptr(); in setUp()
57 samples.reload(TransformQ31::INPUTR_Q31_ID,mgr,this->nbSamples); in setUp()
60 this->pSrc=samples.ptr(); in setUp()
67 samples.reload(TransformQ31::INPUTR_Q31_ID,mgr,this->nbSamples); in setUp()
72 this->pSrc=samples.ptr(); in setUp()
90 samples.reload(TransformQ31::INPUTC_Q31_ID,mgr,2*this->nbSamples); in setUp()
93 this->pSrc=samples.ptr(); in setUp()
107 samples.reload(TransformQ31::INPUTC_Q31_ID,mgr,2*this->nbSamples); in setUp()
110 this->pSrc=samples.ptr(); in setUp()
DTransformF32.cpp46 samples.reload(TransformF32::INPUTC_F32_ID,mgr,2*this->nbSamples); in setUp()
49 this->pSrc=samples.ptr(); in setUp()
58 samples.reload(TransformF32::INPUTR_F32_ID,mgr,2*this->nbSamples); in setUp()
62 this->pSrc=samples.ptr(); in setUp()
72 samples.reload(TransformF32::INPUTR_F32_ID,mgr,this->nbSamples); in setUp()
76 this->pSrc=samples.ptr(); in setUp()
94 samples.reload(TransformF32::INPUTC_F32_ID,mgr,2*this->nbSamples); in setUp()
97 this->pSrc=samples.ptr(); in setUp()
111 samples.reload(TransformF32::INPUTC_F32_ID,mgr,2*this->nbSamples); in setUp()
114 this->pSrc=samples.ptr(); in setUp()
DTransformF16.cpp37 samples.reload(TransformF16::INPUTC_F16_ID,mgr,2*this->nbSamples); in setUp()
40 this->pSrc=samples.ptr(); in setUp()
50 samples.reload(TransformF16::INPUTR_F16_ID,mgr,2*this->nbSamples); in setUp()
54 this->pSrc=samples.ptr(); in setUp()
66 samples.reload(TransformF16::INPUTC_F16_ID,mgr,2*this->nbSamples); in setUp()
69 this->pSrc=samples.ptr(); in setUp()
83 samples.reload(TransformF16::INPUTC_F16_ID,mgr,2*this->nbSamples); in setUp()
86 this->pSrc=samples.ptr(); in setUp()
DSVMF16.cpp59 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp()
70 inp=samples.ptr() + nbi; in setUp()
81 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp()
92 inp=samples.ptr() + nbi; in setUp()
101 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp()
112 inp=samples.ptr() + nbi; in setUp()
120 samples.reload(SVMF16::INPUT_F16_ID,mgr,this->vecDim); in setUp()
131 inp=samples.ptr() + nbi; in setUp()
DSVMF32.cpp59 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp()
70 inp=samples.ptr() + nbi; in setUp()
81 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp()
92 inp=samples.ptr() + nbi; in setUp()
101 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp()
112 inp=samples.ptr() + nbi; in setUp()
120 samples.reload(SVMF32::INPUT_F32_ID,mgr,this->vecDim); in setUp()
131 inp=samples.ptr() + nbi; in setUp()
DSupportF16.cpp44 samples.reload(SupportF16::SAMPLES_F16_ID,mgr,this->nbSamples); in setUp()
45 this->pSrc=samples.ptr(); in setUp()
60 samples.reload(SupportF16::INPUTS6_F16_ID,mgr,this->nbSamples); in setUp()
63 this->pSrc=samples.ptr(); in setUp()
DSupportF32.cpp48 samples.reload(SupportF32::SAMPLES_F32_ID,mgr,this->nbSamples); in setUp()
49 this->pSrc=samples.ptr(); in setUp()
68 samples.reload(SupportF32::INPUTS6_F32_ID,mgr,this->nbSamples); in setUp()
71 this->pSrc=samples.ptr(); in setUp()
DBIQUADF16.cpp38 samples.reload(BIQUADF16::SAMPLES1_F16_ID,mgr,this->nbSamples); in setUp()
51 samples.reload(BIQUADF16::SAMPLES1_F16_ID,mgr,this->nbSamples); in setUp()
81 samples.reload(BIQUADF16::SAMPLES1_F16_ID,mgr,2*this->nbSamples); in setUp()
93 this->pSrc=samples.ptr(); in setUp()
DBIQUADF32.cpp38 samples.reload(BIQUADF32::SAMPLES1_F32_ID,mgr,this->nbSamples); in setUp()
51 samples.reload(BIQUADF32::SAMPLES1_F32_ID,mgr,this->nbSamples); in setUp()
81 samples.reload(BIQUADF32::SAMPLES1_F32_ID,mgr,2*this->nbSamples); in setUp()
93 this->pSrc=samples.ptr(); in setUp()
DFIRF32.cpp33 samples.reload(FIRF32::SAMPLES1_F32_ID,mgr,this->nbSamples); in setUp()
56 this->pSrc=samples.ptr(); in setUp()
68 this->pSrc=samples.ptr(); in setUp()
80 this->pSrc=samples.ptr(); in setUp()
DFIRQ15.cpp32 samples.reload(FIRQ15::SAMPLES1_Q15_ID,mgr,this->nbSamples); in setUp()
55 this->pSrc=samples.ptr(); in setUp()
64 this->pSrc=samples.ptr(); in setUp()
76 this->pSrc=samples.ptr(); in setUp()
DFIRQ31.cpp33 samples.reload(FIRQ31::SAMPLES1_Q31_ID,mgr,this->nbSamples); in setUp()
57 this->pSrc=samples.ptr(); in setUp()
67 this->pSrc=samples.ptr(); in setUp()
80 this->pSrc=samples.ptr(); in setUp()
DControllerQ15.cpp20 samples.reload(ControllerQ15::SAMPLES_Q15_ID,mgr,this->nbSamples); in setUp()
28 this->pSrc=samples.ptr(); in setUp()
DFastMathQ15.cpp37 samples.reload(FastMathQ15::SAMPLES_Q15_ID,mgr,this->nbSamples); in setUp()
41 this->pSrc=samples.ptr(); in setUp()
/cmsis-dsp-3.5.0/Testing/Source/Tests/
DSVMF16.cpp8 const float16_t *inp = samples.ptr(); in test_svm_linear_predict_f16()
28 const float16_t *inp = samples.ptr(); in test_svm_polynomial_predict_f16()
47 const float16_t *inp = samples.ptr(); in test_svm_rbf_predict_f16()
66 const float16_t *inp = samples.ptr(); in test_svm_sigmoid_predict_f16()
97 samples.reload(SVMF16::SAMPLES1_F16_ID,mgr,nb); in setUp()
107 samples.reload(SVMF16::SAMPLES2_F16_ID,mgr,nb); in setUp()
117 samples.reload(SVMF16::SAMPLES3_F16_ID,mgr,nb); in setUp()
127 samples.reload(SVMF16::SAMPLES4_F16_ID,mgr,nb); in setUp()
137 samples.reload(SVMF16::SAMPLES5_F16_ID,mgr,nb); in setUp()
DSVMF32.cpp8 const float32_t *inp = samples.ptr(); in test_svm_linear_predict_f32()
28 const float32_t *inp = samples.ptr(); in test_svm_polynomial_predict_f32()
47 const float32_t *inp = samples.ptr(); in test_svm_rbf_predict_f32()
66 const float32_t *inp = samples.ptr(); in test_svm_sigmoid_predict_f32()
95 samples.reload(SVMF32::SAMPLES1_F32_ID,mgr,nb); in setUp()
105 samples.reload(SVMF32::SAMPLES2_F32_ID,mgr,nb); in setUp()
115 samples.reload(SVMF32::SAMPLES3_F32_ID,mgr,nb); in setUp()
125 samples.reload(SVMF32::SAMPLES4_F32_ID,mgr,nb); in setUp()
136 samples.reload(SVMF32::SAMPLES5_F32_ID,mgr,nb); in setUp()
/cmsis-dsp-3.5.0/Testing/
Dbench.txt462 Names "Number of taps","Number of samples"
493 Names "Number of taps","Number of samples"
524 Names "Number of taps","Number of samples"
555 Names "Number of taps","Number of samples"
589 Names "Number of samples A,Number of samples B"
616 Names "Number of samples A,Number of samples B"
643 Names "Number of samples A,Number of samples B"
670 Names "Number of samples A,Number of samples B"
702 Names "Number of taps","Number of samples","Decimation or Interpolation factor"
728 Names "Number of taps","Number of samples","Decimation or Interpolation factor"
[all …]
Dbench_f16.txt141 Names "Number of taps","Number of samples"
176 Names "Number of samples A,Number of samples B"
211 Names "Number of stages","Number of samples"
248 Names "Number of samples"
402 Names "Number of samples","Vector dimension"
434 Names "Number of samples"
584 Names "Number of samples,Inverse FFT, Bit Reversal"

1234