Lines Matching +full:add +full:- +full:path
1 import os.path
8 # For tests, there is the need to add tests for saturation
12 return(np.array([[p[1],p[0]] for p in np.array(np.meshgrid(y,x)).T.reshape(-1,2)]))
19 y = np.cos(-x**2/(NBSAMPLES - 1))
20 f = interp1d(x, y,bounds_error=False,fill_value=(y[0],y[-1]))
21 data=x-0.9
22 data=np.hstack((data,np.array(data[-1]+1.5)))
40 x = np.arange(-3.14, 3.14, 1.0)
41 y = np.arange(-3.14, 3.14, 0.8)
60 # In Python they must be rescale between -3.14 and the max x or max y defined above.
61 # In CMSIS they will be between 1 and numRow-1 or numCols-1.
62 # Since we add 0.5 to be sure we are between grid point, we use
63 # numCols-2 as bound to be sured we are <= numCols-1
71 ix = np.linspace(0, numCols-3, num=NBX, endpoint=True)+0.5
72 iy = np.linspace(0, numRows-3, num=NBY, endpoint=True)+0.5
76 ixVal = ((ix ) / (numCols-1)) * (x[-1] + 3.14) - 3.14
77 iyVal = ((iy ) / (numRows-1)) * (y[-1] + 3.14) - 3.14
123 xnew = np.arange(-10,20,1)
132 PATTERNDIR = os.path.join("Patterns","DSP","Interpolation","Interpolation")
133 PARAMDIR = os.path.join("Parameters","DSP","Interpolation","Interpolation")