Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. dct_mat_2 = np.zeros((65536,65536))
  2.  
  3. N = dct_mat.shape[1]
  4.  
  5. n_v = np.arange(0,65536)
  6.  
  7.  
  8. for m in tqdm(range(dct_mat.shape[0])):
  9.     if m == 0:
  10.         au = np.sqrt(1/N)
  11.     else:
  12.         au = np.sqrt(2/N)
  13.     dct_mat_2[m,:] = au*np.cos(((2*n_v+1)*m*np.pi)/(2*N))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement