/cmsis-dsp-3.7.0-3.6.0/Testing/TestScripts/doc/ |
D | Structure.py | 4 def __init__(self,name,subsections=None): argument 5 self._parent = None 6 self._name=name 7 self._sections = [] 10 self.addSection(s) 13 def parent(self): argument 14 return(self._parent) 17 def sections(self): argument 18 return(self._sections) 20 def addSection(self,section): argument [all …]
|
D | Format.py | 41 def __init__(self,output): argument 42 self._id=0 43 self._output = output 45 def visitBarChart(self,data): argument 48 def visitHistory(self,data): argument 51 def visitText(self,text): argument 52 self._output.write(text) 55 def writeColumns(self,cols): argument 57 self._output.write("|") 58 self._output.write(colStr) [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Testing/PatternGeneration/ |
D | Tools.py | 175 def __init__(self,patternDir,paramDir,ext): argument 176 self._patternDir = "%s%s" % (patternDir,ext.upper()) 177 self._paramDir = "%s%s" % (paramDir,ext.upper()) 178 self._ext = ext 179 self._overwrite=True 181 createMissingDir(self._patternDir) 182 createMissingDir(self._paramDir) 184 def setOverwrite(self,v): argument 185 self._overwrite=v 187 def canOverwrite(self,path): argument [all …]
|
D | MFCC.py | 91 def __init__(self,freq_min,freq_high,numOfMelFilters,numOfDctOutputs,FFTSize,sample_rate): argument 92 self._freq_min=freq_min 93 self._freq_high=freq_high 94 self._numOfMelFilters = numOfMelFilters 95 self._FFTSize=FFTSize 96 self._sample_rate=sample_rate 98 self._window = sig.hamming(FFTSize, sym=False) 100 self._numOfDctOutputs=numOfDctOutputs 102 self._filters = melFilterMatrix(freq_min, freq_high, numOfMelFilters,sample_rate,FFTSize) 105 self._dctMatrixFilters = dctMatrix(numOfDctOutputs, numOfMelFilters) [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Testing/TestScripts/ |
D | Parser.py | 29 def __init__(self,ident): argument 30 self.kind=TreeElem.TEST 31 self.ident = ident 32 self._children = [] 33 self.parent = None 34 self._data = None 35 self.id = 1 36 self._path="" 37 self.patterns=[] 38 self.outputs=[] [all …]
|
D | CodeGen.py | 45 def __init__(self,patternDir,paramDir,fpga): argument 57 self._fpga = fpga 58 self._patternDir = patternDir 59 self._paramDir = paramDir 60 self._currentPaths = [self._patternDir] 61 self._currentParamPaths = [self._paramDir] 62 self._alignment=8 64 def _genGroup(self,root,fi): argument 125 def _genSuite(self,root,thedir,sourceFile): argument 207 def _genCode(self,root,dir,sourceFile,headerFile): argument [all …]
|
D | NewParser.py | 12 def __init__(self): argument 13 self.full = [] 14 self.summary=None 15 self.paramNames = None 16 self.formula="" 18 def __str__(self): argument 19 return(str(self.full) + str(self.summary) + str(self.paramNames)) 160 def __init__(self): argument 161 self.id = 0 163 def parse(self, filePath): argument
|
/cmsis-dsp-3.7.0-3.6.0/PythonWrapper/examples/kws_example/ |
D | appnodes.py | 36 def __init__(self,inputSize,fifoin): argument 37 GenericSink.__init__(self,inputSize,fifoin) 40 def run(self): argument 41 i=self.getReadBuffer() 54 def __init__(self,outputSize,fifoout,buffer): argument 55 GenericSource.__init__(self,outputSize,fifoout) 56 self._offset=0 57 self._buffer=np.array(buffer) 59 def run(self): argument 60 a=self.getWriteBuffer() [all …]
|
D | kws.ipynb | 240 " def __init__(self,p):\n", 243 " self._isFile=True \n", 244 " self._filename=p\n", 245 " self._label=get_label_id(p)\n", 247 " data, samplerate = sf.read(self._filename)\n", 248 " self._feature = feature(data)\n", 250 " self._isFile=False\n", 251 " self._noiseLevel=p\n", 252 " self._label=UNKNOWN_CLASS\n", 255 " self._feature=feature(noise)\n", [all …]
|
/cmsis-dsp-3.7.0-3.6.0/PythonWrapper/cmsisdsp_pkg/src/ |
D | cmsisdsp_transform.c | 48 arm_cfft_radix2_instance_q15_dealloc(dsp_arm_cfft_radix2_instance_q15Object* self) in arm_cfft_radix2_instance_q15_dealloc() argument 51 if (self->instance) in arm_cfft_radix2_instance_q15_dealloc() 55 PyMem_Free(self->instance); in arm_cfft_radix2_instance_q15_dealloc() 58 Py_TYPE(self)->tp_free((PyObject*)self); in arm_cfft_radix2_instance_q15_dealloc() 65 dsp_arm_cfft_radix2_instance_q15Object *self; in arm_cfft_radix2_instance_q15_new() local 68 self = (dsp_arm_cfft_radix2_instance_q15Object *)type->tp_alloc(type, 0); in arm_cfft_radix2_instance_q15_new() 71 if (self != NULL) { in arm_cfft_radix2_instance_q15_new() 73 self->instance = PyMem_Malloc(sizeof(arm_cfft_radix2_instance_q15)); in arm_cfft_radix2_instance_q15_new() 75 self->instance->pTwiddle = NULL; in arm_cfft_radix2_instance_q15_new() 76 self->instance->pBitRevTable = NULL; in arm_cfft_radix2_instance_q15_new() [all …]
|
D | cmsisdsp_interpolation.c | 45 arm_linear_interp_instance_f32_dealloc(dsp_arm_linear_interp_instance_f32Object* self) in arm_linear_interp_instance_f32_dealloc() argument 48 if (self->instance) in arm_linear_interp_instance_f32_dealloc() 52 if (self->instance->pYData) in arm_linear_interp_instance_f32_dealloc() 54 PyMem_Free(self->instance->pYData); in arm_linear_interp_instance_f32_dealloc() 58 PyMem_Free(self->instance); in arm_linear_interp_instance_f32_dealloc() 61 Py_TYPE(self)->tp_free((PyObject*)self); in arm_linear_interp_instance_f32_dealloc() 68 dsp_arm_linear_interp_instance_f32Object *self; in arm_linear_interp_instance_f32_new() local 71 self = (dsp_arm_linear_interp_instance_f32Object *)type->tp_alloc(type, 0); in arm_linear_interp_instance_f32_new() 74 if (self != NULL) { in arm_linear_interp_instance_f32_new() 76 self->instance = PyMem_Malloc(sizeof(arm_linear_interp_instance_f32)); in arm_linear_interp_instance_f32_new() [all …]
|
D | cmsisdsp_filtering.c | 43 arm_fir_instance_q7_dealloc(dsp_arm_fir_instance_q7Object* self) in arm_fir_instance_q7_dealloc() argument 46 if (self->instance) in arm_fir_instance_q7_dealloc() 50 if (self->instance->pState) in arm_fir_instance_q7_dealloc() 52 PyMem_Free(self->instance->pState); in arm_fir_instance_q7_dealloc() 56 if (self->instance->pCoeffs) in arm_fir_instance_q7_dealloc() 58 PyMem_Free((q7_t*)self->instance->pCoeffs); in arm_fir_instance_q7_dealloc() 62 PyMem_Free(self->instance); in arm_fir_instance_q7_dealloc() 65 Py_TYPE(self)->tp_free((PyObject*)self); in arm_fir_instance_q7_dealloc() 72 dsp_arm_fir_instance_q7Object *self; in arm_fir_instance_q7_new() local 75 self = (dsp_arm_fir_instance_q7Object *)type->tp_alloc(type, 0); in arm_fir_instance_q7_new() [all …]
|
D | cmsisdsp_bayes.c | 47 arm_gaussian_naive_bayes_instance_f32_dealloc(dsp_arm_gaussian_naive_bayes_instance_f32Object* self) in arm_gaussian_naive_bayes_instance_f32_dealloc() argument 50 if (self->instance) in arm_gaussian_naive_bayes_instance_f32_dealloc() 53 if (self->instance->theta) in arm_gaussian_naive_bayes_instance_f32_dealloc() 55 PyMem_Free((float32_t*)self->instance->theta); in arm_gaussian_naive_bayes_instance_f32_dealloc() 58 if (self->instance->sigma) in arm_gaussian_naive_bayes_instance_f32_dealloc() 60 PyMem_Free((float32_t*)self->instance->sigma); in arm_gaussian_naive_bayes_instance_f32_dealloc() 63 if (self->instance->classPriors) in arm_gaussian_naive_bayes_instance_f32_dealloc() 65 PyMem_Free((float32_t*)self->instance->classPriors); in arm_gaussian_naive_bayes_instance_f32_dealloc() 68 PyMem_Free(self->instance); in arm_gaussian_naive_bayes_instance_f32_dealloc() 71 Py_TYPE(self)->tp_free((PyObject*)self); in arm_gaussian_naive_bayes_instance_f32_dealloc() [all …]
|
D | cmsisdsp_controller.c | 47 arm_pid_instance_q15_dealloc(dsp_arm_pid_instance_q15Object* self) in arm_pid_instance_q15_dealloc() argument 50 if (self->instance) in arm_pid_instance_q15_dealloc() 54 PyMem_Free(self->instance); in arm_pid_instance_q15_dealloc() 57 Py_TYPE(self)->tp_free((PyObject*)self); in arm_pid_instance_q15_dealloc() 64 dsp_arm_pid_instance_q15Object *self; in arm_pid_instance_q15_new() local 67 self = (dsp_arm_pid_instance_q15Object *)type->tp_alloc(type, 0); in arm_pid_instance_q15_new() 70 if (self != NULL) { in arm_pid_instance_q15_new() 72 self->instance = PyMem_Malloc(sizeof(arm_pid_instance_q15)); in arm_pid_instance_q15_new() 78 return (PyObject *)self; in arm_pid_instance_q15_new() 82 arm_pid_instance_q15_init(dsp_arm_pid_instance_q15Object *self, PyObject *args, PyObject *kwds) in arm_pid_instance_q15_init() argument [all …]
|
D | cmsisdsp_svm.c | 52 arm_svm_##NAME##_instance_f32_dealloc(dsp_arm_svm_##NAME##_instance_f32Object* self)\ 54 if (self->instance) \ 57 if (self->instance->dualCoefficients) \ 59 PyMem_Free((float32_t*)self->instance->dualCoefficients); \ 62 if (self->instance->supportVectors) \ 64 PyMem_Free((float32_t*)self->instance->supportVectors); \ 67 if (self->instance->classes) \ 69 PyMem_Free((float32_t*)self->instance->classes); \ 72 PyMem_Free(self->instance); \ 75 Py_TYPE(self)->tp_free((PyObject*)self); \ [all …]
|
D | cmsisdsp_matrix.c | 69 arm_matrix_instance_f32_dealloc(dsp_arm_matrix_instance_f32Object* self) in arm_matrix_instance_f32_dealloc() argument 72 if (self->instance) in arm_matrix_instance_f32_dealloc() 76 if (self->instance->pData) in arm_matrix_instance_f32_dealloc() 78 PyMem_Free(self->instance->pData); in arm_matrix_instance_f32_dealloc() 82 PyMem_Free(self->instance); in arm_matrix_instance_f32_dealloc() 85 Py_TYPE(self)->tp_free((PyObject*)self); in arm_matrix_instance_f32_dealloc() 92 dsp_arm_matrix_instance_f32Object *self; in arm_matrix_instance_f32_new() local 95 self = (dsp_arm_matrix_instance_f32Object *)type->tp_alloc(type, 0); in arm_matrix_instance_f32_new() 98 if (self != NULL) { in arm_matrix_instance_f32_new() 100 self->instance = PyMem_Malloc(sizeof(arm_matrix_instance_f32)); in arm_matrix_instance_f32_new() [all …]
|
D | cmsisdsp_support.c | 43 arm_sort_instance_f32_dealloc(dsp_arm_sort_instance_f32Object* self) in arm_sort_instance_f32_dealloc() argument 46 if (self->instance) in arm_sort_instance_f32_dealloc() 49 PyMem_Free(self->instance); in arm_sort_instance_f32_dealloc() 52 Py_TYPE(self)->tp_free((PyObject*)self); in arm_sort_instance_f32_dealloc() 58 dsp_arm_sort_instance_f32Object *self; in arm_sort_instance_f32_new() local 61 self = (dsp_arm_sort_instance_f32Object *)type->tp_alloc(type, 0); in arm_sort_instance_f32_new() 64 if (self != NULL) { in arm_sort_instance_f32_new() 66 self->instance = PyMem_Malloc(sizeof(arm_sort_instance_f32)); in arm_sort_instance_f32_new() 71 return (PyObject *)self; in arm_sort_instance_f32_new() 75 arm_sort_instance_f32_init(dsp_arm_sort_instance_f32Object *self, PyObject *args, PyObject *kwds) in arm_sort_instance_f32_init() argument [all …]
|
D | cmsisdsp_module.h | 102 Method_##NAME##_##FIELD(dsp_##NAME##Object *self, PyObject *ignored)\ 104 return(Py_BuildValue(FORMAT,self->instance->FIELD)); \ 109 Method_##NAME##_##FIELD(dsp_##NAME##Object *self, PyObject *ignored)\ 111 return(specific_##NAME##_##FIELD(self->instance)); \ 126 self->instance->FIELD =PyMem_Malloc(sizeof(DSTFORMAT)*n); \ 127 MEMCPY((DSTFORMAT*)self->instance->FIELD ,f,n,DSTFORMAT); \
|
/cmsis-dsp-3.7.0-3.6.0/Testing/ |
D | processResult.py | 81 def start(self): argument 84 def printGroup(self,elem,theId): argument 96 def printTest(self,elem, theId, theError,errorDetail,theLine,passed,cycles,params): argument 116 def pop(self): argument 119 def end(self): argument 124 def __init__(self,append=False): argument 125 self.nb=1 126 self.suite=False 127 self.append = append 129 def start(self): argument [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Scripts/ |
D | mfccdata.py | 57 def __init__(self,theType): argument 58 self._cvt = lambda x : x 60 self._cvt = to_f32 62 self._cvt = to_f16 64 self._cvt = to_q31 66 self._cvt = to_q15 68 def getArrayContent(self,samples): argument 73 res += str(self._cvt(sample))
|
/cmsis-dsp-3.7.0-3.6.0/Testing/cmsis_build/ |
D | runall.py | 56 def __init__(self,msg,error=False): argument 57 self._error = error 58 self._msg = msg 61 def error(self): argument 62 return self._error 65 def msg(self): argument 66 return self._msg
|
/cmsis-dsp-3.7.0-3.6.0/PythonWrapper/examples/ |
D | Noise suppression.ipynb | 755 " def __init__(self,slices):\n", 756 " self._windowLength=len(slices[0])\n", 757 " self._fftLen,self._fftShift=fft_length(self._windowLength)\n", 759 " self._padding_left=(self._fftLen - self._windowLength)//2 \n", 760 " self._padding_right=self._fftLen- self._windowLength-self._padding_left\n", 762 " self._signal=[]\n", 763 " self._slices=slices\n", 764 " self._window=None\n", 766 " def window_and_pad(self,w):\n", 768 " w=dsp.arm_mult_q31(w,self._window)\n", [all …]
|
/cmsis-dsp-3.7.0-3.6.0/Documentation/Doxygen/style_template/ |
D | extra_stylesheet.css | 455 align-self: end;
|