Guest User

Untitled

a guest
Feb 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. import numpy as np
  2. from itertools import permutations
  3.  
  4. noise_buffer = np.random.normal(size=n*n*n).reshape(n,n,n)/np.sqrt(6);
  5. noise = np.zeros([n,n,n]);
  6. for i in permutations([0,1,2]):
  7. noise += np.transpose(noise_buffer,axes=list(i))
Add Comment
Please, Sign In to add comment