daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest May 24th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def HaarTransform(N):
  2.     wavelet = np.zeros((N,N))
  3.     for i in range(N//2):
  4.         wavelet[i,i*2] = sqrt(2)/2
  5.         wavelet[i,i*2 + 1] = sqrt(2)/2
  6.     for j in range(N//2):
  7.         wavelet[N//2 + j,j*2] = -sqrt(2)/2
  8.         wavelet[N//2 + j,j*2 + 1] = sqrt(2)/2
  9.     return wavelet
  10.  
  11. wave600 = HaarTransform(600)
  12. wave478 = HaarTransform(478)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top