2 import matplotlib.pyplot as plt
4 dep = ( 0, pow(2, 8) ) # 9 bits
5 arr = ( 0, pow(2, 16) ) # 16 bits
7 # deprange = np.arange(0, pow(2, 8), 1) # 9 bits
11 plt.plot(dep, arr, 'r--', linewidth=.3)
12 # plt.plot(dep, arr, 'r--', deprange, deprange<<8, 'bs', linewidth=.1)
17 print( 'i, i<<8:', (i, i<<8) )
21 # print("affine transfo")
30 # r = max( 0, ( (i-a) * (d-c) / (b-a) + c ) )
32 # print( 'i, r:', (i, r) )
33 # print( 'i, i<<8:', (i, r2) )
36 # print('count', count)