Changeset 326 for trunk/examples/retina/benchmark_noise.py
- Timestamp:
- 11/12/08 19:49:46 (4 years ago)
- Files:
-
- 1 modified
-
trunk/examples/retina/benchmark_noise.py (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/retina/benchmark_noise.py
- Property svn:keywords set to Id
r172 r326 25 25 import progressbar # see http://projects.scipy.org/pipermail/scipy-dev/2008-January/008200.html 26 26 27 N, N_exp_noise = 100 , 2228 p = ParameterSet({}) 29 p .noise_std = ParameterRange(list(10.**(numpy.linspace(-.50,1.,N_exp_noise))))27 N, N_exp_noise = 1000, 22 28 29 p = ParameterSpace({'noise_std' : ParameterRange(list(10.**(numpy.linspace(-.50,1.,N_exp_noise))))}) 30 30 31 31 import retina as model 32 33 34 32 retina = model.Retina(N) 35 33 retina.params['snr'] = 0 # no input … … 87 85 pylab.xlabel('Noise amplitude') 88 86 89 pylab.savefig('results/fig-' + name + '.pdf')90 pylab.savefig('results/fig-' + name + '.png', dpi = 300)91 87 88 if 0: 89 pylab.show() 90 else: 91 pylab.savefig('results/fig-' + name + '.pdf') 92 pylab.savefig('results/fig-' + name + '.png', dpi = 300) 93 94 95 #TODO: make a plot showing that spontaneous activity is a point process with a known histogram
