Home
last modified time | relevance | path

Searched refs:self (Results 1 – 23 of 23) sorted by relevance

/cmsis-dsp-3.7.0-3.6.0/Testing/TestScripts/doc/
DStructure.py4 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 …]
DFormat.py41 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/
DTools.py175 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 …]
DMFCC.py91 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/
DParser.py29 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 …]
DCodeGen.py45 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 …]
DNewParser.py12 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/
Dappnodes.py36 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 …]
Dkws.ipynb240 " 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/
Dcmsisdsp_transform.c48 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 …]
Dcmsisdsp_interpolation.c45 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 …]
Dcmsisdsp_filtering.c43 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 …]
Dcmsisdsp_bayes.c47 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 …]
Dcmsisdsp_controller.c47 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 …]
Dcmsisdsp_svm.c52 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 …]
Dcmsisdsp_matrix.c69 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 …]
Dcmsisdsp_support.c43 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 …]
Dcmsisdsp_module.h102 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/
DprocessResult.py81 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/
Dmfccdata.py57 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/
Drunall.py56 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/
DNoise suppression.ipynb755 " 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/
Dextra_stylesheet.css455 align-self: end;