##// END OF EJS Templates
Few fixes....
Few fixes. Whole LFR simulation WIP.

File last commit:

r654:d239e3167642 default
r682:c53e1b6b3045 default
Show More
generate.py
13 lines | 616 B | text/x-python | PythonLexer
Jeandet Alexis
Some more cleaning...
r647 import numpy as np
import random
Alexis Jeandet
Activated F2 and F3 IIR Filters for LFR_FILTERS tests....
r654 W,H=8,6000000
low,high=-100,100
INPUT_F=98304
Jeandet Alexis
Some more cleaning...
r647 test = np.random.randint(low=low,high=high,size=(H,W))
Alexis Jeandet
Activated F2 and F3 IIR Filters for LFR_FILTERS tests....
r654 test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 3. /INPUT_F )).astype(int),(8,1)).transpose()
test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 16. /INPUT_F )).astype(int),(8,1)).transpose()
test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 256. /INPUT_F )).astype(int),(8,1)).transpose()
test+=np.tile((3.*np.cos(np.arange(len(test)) *2.*np.pi * 2048. /INPUT_F )).astype(int),(8,1)).transpose()
Jeandet Alexis
Some more cleaning...
r647 np.savetxt("input.txt", test,fmt="%d", delimiter=" ")