Home
last modified time | relevance | path

Searched refs:coefs (Results 1 – 25 of 75) sorted by relevance

123

/cmsis-dsp-latest/Testing/PatternGeneration/
DBIQUAD.py23 coefs=np.random.randn(NUMSTAGES*5)
26 coefs = Tools.normalize(coefs)
31 config.writeInput(1, coefs,"Coefs")
35 coefs=np.reshape(np.hstack((np.insert(sos[:,:3],1,0.0,axis=1),-sos[:,4:])),n*6)
37 coefs=np.reshape(np.hstack((sos[:,:3],-sos[:,4:])),n*5)
41 coefs = coefs / 4.0
45 coefs = coefs / 4.0
47 return(coefs)
98 coefs=getCoefs(3,sos,format)
104 config.writeInput(1, coefs,"BiquadCoefs")
[all …]
DFIR.py75 coefs=pythonCoefs
80 coefs = np.append(coefs,[0.0])
85 coefs = list(coefs)
86 coefs.reverse()
87 tapConfigs += coefs
/cmsis-dsp-latest/Testing/Source/Benchmarks/
DBIQUADF16.cpp40 coefs.reload(BIQUADF16::COEFS1_F16_ID,mgr,this->numStages * 5); in setUp()
45 coefs.ptr(), in setUp()
53 coefs.reload(BIQUADF16::COEFS1_F16_ID,mgr,this->numStages * 5); in setUp()
67 … arm_biquad_cascade_df2T_compute_coefs_f16(&instBiquadDf2T,this->numStages,coefs.ptr()); in setUp()
73 coefs.ptr(), in setUp()
83 coefs.reload(BIQUADF16::COEFS1_F16_ID,mgr,this->numStages * 5); in setUp()
88 coefs.ptr(), in setUp()
DBIQUADF32.cpp40 coefs.reload(BIQUADF32::COEFS1_F32_ID,mgr,this->numStages * 5); in setUp()
45 coefs.ptr(), in setUp()
53 coefs.reload(BIQUADF32::COEFS1_F32_ID,mgr,this->numStages * 5); in setUp()
67 … arm_biquad_cascade_df2T_compute_coefs_f32(&instBiquadDf2T,this->numStages,coefs.ptr()); in setUp()
73 coefs.ptr(), in setUp()
83 coefs.reload(BIQUADF32::COEFS1_F32_ID,mgr,this->numStages * 5); in setUp()
88 coefs.ptr(), in setUp()
DFIRQ15.cpp33 coefs.reload(FIRQ15::COEFS1_Q15_ID,mgr,this->nbTaps); in setUp()
47 ptr=coefs.ptr(); in setUp()
51 this->pCoefs=coefs.ptr(); in setUp()
53 arm_fir_init_q15(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
62 arm_lms_init_q15(&instLms,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
74 … arm_lms_norm_init_q15(&instLmsNorm,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
DFIRQ31.cpp34 coefs.reload(FIRQ31::COEFS1_Q31_ID,mgr,this->nbTaps); in setUp()
48 ptr=coefs.ptr(); in setUp()
52 this->pCoefs=coefs.ptr(); in setUp()
55 arm_fir_init_q31(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
65 arm_lms_init_q31(&instLms,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
78 … arm_lms_norm_init_q31(&instLmsNorm,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
DFIRF32.cpp34 coefs.reload(FIRF32::COEFS1_F32_ID,mgr,this->nbTaps); in setUp()
49 ptr=coefs.ptr(); in setUp()
53 this->pCoefs=coefs.ptr(); in setUp()
66 arm_lms_init_f32(&instLms,this->nbTaps,coefs.ptr(),state.ptr(),0.1,this->nbSamples); in setUp()
78 … arm_lms_norm_init_f32(&instLmsNorm,this->nbTaps,coefs.ptr(),state.ptr(),0.1,this->nbSamples); in setUp()
DFIRF16.cpp25 coefs.reload(FIRF16::COEFS1_F16_ID,mgr,this->nbTaps); in setUp()
39 ptr=coefs.ptr(); in setUp()
43 this->pCoefs=coefs.ptr(); in setUp()
46 arm_fir_init_f16(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
DFIRQ7.cpp25 coefs.reload(FIRQ7::COEFS1_Q7_ID,mgr,this->nbTaps); in setUp()
39 ptr=coefs.ptr(); in setUp()
43 this->pCoefs=coefs.ptr(); in setUp()
45 arm_fir_init_q7(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
DDECIMQ15.cpp28 coefs.reload(DECIMQ15::COEFS1_Q15_ID,mgr,this->nbTaps); in setUp()
40 coefs.ptr(), in setUp()
51 coefs.ptr(), in setUp()
DDECIMQ31.cpp28 coefs.reload(DECIMQ31::COEFS1_Q31_ID,mgr,this->nbTaps); in setUp()
40 coefs.ptr(), in setUp()
51 coefs.ptr(), in setUp()
DDECIMF32.cpp28 coefs.reload(DECIMF32::COEFS1_F32_ID,mgr,this->nbTaps); in setUp()
42 coefs.ptr(), in setUp()
58 coefs.ptr(), in setUp()
/cmsis-dsp-latest/Testing/Source/Tests/
DBIQUADF32.cpp23 const float32_t *coefsp = coefs.ptr(); in test_biquad_cascade_df1_ref()
95 const float32_t *coefsp = coefs.ptr(); in test_biquad_cascade_df2T_ref()
169 const float32_t *coefsp = coefs.ptr(); in test_biquad_cascade_df1_rand()
248 const float32_t *coefsp = coefs.ptr(); in test_biquad_cascade_df2T_rand()
250 float32_t *coefsp = coefs.ptr(); in test_biquad_cascade_df2T_rand()
334 const float32_t *coefsp = coefs.ptr(); in test_biquad_cascade_stereo_df2T_rand()
408 coefs.reload(BIQUADF32::BIQUADCOEFS_F32_ID,mgr); in setUp()
420 coefs.reload(BIQUADF32::BIQUADCOEFS_F32_ID,mgr); in setUp()
427 coefs.reload(BIQUADF32::ALLBIQUADCOEFS_F32_ID,mgr); in setUp()
440 coefs.reload(BIQUADF32::ALLBIQUADCOEFS_F32_ID,mgr); in setUp()
[all …]
DBIQUADF16.cpp23 const float16_t *coefsp = coefs.ptr(); in test_biquad_cascade_df1_ref()
97 float16_t *coefsp = coefs.ptr(); in test_biquad_cascade_df2T_ref()
159 const float16_t *coefsp = coefs.ptr(); in test_biquad_cascade_df1_rand()
237 float16_t *coefsp = coefs.ptr(); in test_biquad_cascade_df2T_rand()
308 const float16_t *coefsp = coefs.ptr(); in test_biquad_cascade_stereo_df2T_rand()
382 coefs.reload(BIQUADF16::BIQUADCOEFS_F16_ID,mgr); in setUp()
394 coefs.reload(BIQUADF16::BIQUADCOEFS_F16_ID,mgr); in setUp()
401 coefs.reload(BIQUADF16::ALLBIQUADCOEFS_F16_ID,mgr); in setUp()
414 coefs.reload(BIQUADF16::ALLBIQUADCOEFS_F16_ID,mgr); in setUp()
422 coefs.reload(BIQUADF16::ALLBIQUADCOEFS_F16_ID,mgr); in setUp()
DBIQUADF64.cpp22 float64_t *coefsp = coefs.ptr(); in test_biquad_cascade_df2T_ref()
86 float64_t *coefsp = coefs.ptr(); in test_biquad_cascade_df2T_rand()
159 coefs.reload(BIQUADF64::BIQUADCOEFS_F64_ID,mgr); in setUp()
166 coefs.reload(BIQUADF64::ALLBIQUADCOEFS_F64_ID,mgr); in setUp()
DDECIMF32.cpp24 float32_t * pCoefs = coefs.ptr(); in test_fir_decimate_f32()
79 float32_t * pCoefs = coefs.ptr(); in test_fir_interpolate_f32()
139 coefs.reload(DECIMF32::COEFS1_F32_ID,mgr); in setUp()
150 coefs.reload(DECIMF32::COEFS2_F32_ID,mgr); in setUp()
DDECIMF64.cpp24 float64_t * pCoefs = coefs.ptr(); in test_fir_decimate_f64()
80 float64_t * pCoefs = coefs.ptr();
140 coefs.reload(DECIMF64::COEFS1_F64_ID,mgr); in setUp()
152 coefs.reload(DECIMF64::COEFS2_F64_ID,mgr); in setUp()
DDECIMQ15.cpp27 q15_t * pCoefs = coefs.ptr(); in test_fir_decimate_q15()
79 q15_t * pCoefs = coefs.ptr(); in test_fir_interpolate_q15()
138 coefs.reload(DECIMQ15::COEFS1_Q15_ID,mgr); in setUp()
149 coefs.reload(DECIMQ15::COEFS2_Q15_ID,mgr); in setUp()
DDECIMQ31.cpp27 q31_t * pCoefs = coefs.ptr(); in test_fir_decimate_q31()
82 q31_t * pCoefs = coefs.ptr(); in test_fir_interpolate_q31()
141 coefs.reload(DECIMQ31::COEFS1_Q31_ID,mgr); in setUp()
152 coefs.reload(DECIMQ31::COEFS2_Q31_ID,mgr); in setUp()
DBIQUADQ31.cpp27 const q31_t *coefsp = coefs.ptr(); in test_biquad_cascade_df1()
86 const q31_t *coefsp = coefs.ptr(); in test_biquad_cascade_df1_32x64()
184 coefs.reload(BIQUADQ31::BIQUADCOEFS_Q31_ID,mgr); in setUp()
/cmsis-dsp-latest/PythonWrapper/examples/
Dexample.py64 coefs=np.reshape(np.hstack((sos[:,:3],-sos[:,4:])),15) variable
65 coefs = coefs / 4.0 variable
66 coefsQ31 = toQ31(coefs)
/cmsis-dsp-latest/Scripts/
DgenMVETwiddleCoefs.py152 coefs= twiddle(n)
205 tab1[tab1Index] = coefs[pVectCoef1]
207 tab1[tab1Index + 1] = coefs[pVectCoef1 + 1]
209 tab1[tab1Index + 1] = -coefs[pVectCoef1 + 1]
213 tab2[tab2Index] = coefs[pVectCoef2]
215 tab2[tab2Index + 1] = coefs[pVectCoef2 + 1]
217 tab2[tab2Index + 1] = -coefs[pVectCoef2 + 1]
221 tab3[tab3Index] = coefs[pVectCoef3]
223 tab3[tab3Index + 1] = coefs[pVectCoef3 + 1]
225 tab3[tab3Index + 1] = -coefs[pVectCoef3 + 1]
/cmsis-dsp-latest/dsppp/tests/
Dfilter_test.cpp440 static void init_coef(float32_t *coefs,uint16_t numTaps) in init_coef()
444 coefs[i] = 1.0f / numTaps; in init_coef()
464 static void init_coef(Q15 *coefs,uint16_t numTaps) in init_coef()
468 coefs[i] = Q15::f(1.0f / numTaps); in init_coef()
478 FIR(const PVector<T,TAPS> &coefs):coef_(coefs),state_(T{}) in FIR()
565 PVector<T,TAPS> coefs; in test() local
567 FirType<T>::init_coef(coefs.ptr(),TAPS); in test()
570 FIR<T,BLOCK,TAPS> fir(coefs); in test()
590 coefsb[i] = coefs[i]; in test()
/cmsis-dsp-latest/Source/TransformFunctions/
Darm_mfcc_f32.c79 const float32_t *coefs=S->filterCoefs; in arm_mfcc_f32() local
128 coefs, in arm_mfcc_f32()
132 coefs += S->filterLengths[i]; in arm_mfcc_f32()
Darm_mfcc_f16.c89 const float16_t *coefs=S->filterCoefs; in arm_mfcc_f16() local
138 coefs, in arm_mfcc_f16()
142 coefs += S->filterLengths[i]; in arm_mfcc_f16()

123