Changeset 304
- Timestamp:
- 11/07/08 16:07:32 (2 months ago)
- Files:
-
- trunk/src/__init__.py (modified) (1 diff)
- trunk/src/plotting.py (modified) (2 diffs)
- trunk/src/signals.py (modified) (13 diffs)
- trunk/src/stgen.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/__init__.py
r302 r304 1 __all__ = ['analysis', 'parameters', 'plotting', 'sandbox', 'signals', 'stgen', ' utilities', 'io']1 __all__ = ['analysis', 'parameters', 'plotting', 'sandbox', 'signals', 'stgen', 'io'] 2 2 3 3 ######################################################### trunk/src/plotting.py
r298 r304 80 80 useTex - enables or disables the use of LaTeX for all labels and texts 81 81 (for details on how to do that, see http://www.scipy.org/Cookbook/Matplotlib/UsingTex). 82 83 82 """ 84 83 inches_per_pt = 1.0/72.27 # Convert pt to inch … … 154 153 useTex - enables or disables the use of LaTeX for all labels and texts 155 154 (for details on how to do that, see http://www.scipy.org/Cookbook/Matplotlib/UsingTex) 156 157 155 """ 158 156 pylab.rcParams.update(pylab_params(fig_width_pt=fig_width_pt, ratio=ratio, text_fontsize=text_fontsize, \ trunk/src/signals.py
r302 r304 55 55 See also 56 56 SpikeTrain 57 58 57 """ 59 58 … … 270 269 See also 271 270 isi 272 273 271 """ 274 272 isi = self.isi() … … 308 306 See also 309 307 time_histogram 310 311 308 """ 312 309 if newnum: … … 613 610 See also 614 611 load_spikelist 615 616 612 """ 617 613 ####################################################################### … … 1165 1161 See also: 1166 1162 cv_isi, cv_isi_hist, cv_local 1167 1168 1163 """ 1169 1164 … … 1216 1211 See also 1217 1212 cv_isi, cv_isi_hist, cv_kl 1218 1219 1213 """ 1220 1214 if t_start == None: … … 1710 1704 if None, this is the one calling the function 1711 1705 cost - The cost parameter. See the paper for more informations. BY default, set to 0.5 1712 1713 1706 """ 1714 1707 if spklist == None: … … 2082 2075 See also 2083 2076 AnalogSignalList, load_currentlist, load_vmlist, load_conductancelist, load 2084 2085 2077 """ 2086 2078 def __init__(self, signal, dt, t_start=None, t_stop=None): … … 2217 2209 t_start - begining of the new SpikeTrain, in ms. 2218 2210 t_stop - end of the new SpikeTrain, in ms. 2219 2220 2211 """ 2221 2212 signal = self.signal[numpy.floor(t_start/self.dt):numpy.floor(t_stop/self.dt)] … … 2278 2269 >> vm.event_triggered_average(spktrain, average=True) 2279 2270 >> vm.event_triggered_average(range(0,1000,10), average=False, display=True) 2280 2281 2271 """ 2282 2272 … … 2392 2382 See also 2393 2383 load_currentlist load_vmlist, load_conductancelist 2394 2395 2384 """ 2396 2385 def __init__(self, signals, id_list, dt, t_start=None, t_stop=None, dims=None): … … 2725 2714 >> vmlist.event_triggered_average(spikelist, average=True, mode = 'all') 2726 2715 >> vmlist.event_triggered_average({'1':[200,300,'3':[234,788]]}, average=False, display=True) 2727 2728 2716 """ 2729 2717 if isinstance(eventdict, SpikeList): … … 3013 3001 See also: 3014 3002 load_spikelist, load_conductancelist, load_vmlist, load_currentlist 3015 3016 3003 """ 3017 3004 if datatype == 's': trunk/src/stgen.py
r302 r304 16 16 17 17 Inputs: 18 x - unit in seconds 19 b - units in seconds 18 x - in units of seconds 20 19 a - dimensionless 21 20 b - in units of seconds 22 21 """ 23 22 … … 61 60 Examples: 62 61 >> x = StGen() 63 64 62 """ 65 63 … … 129 127 130 128 Inputs: 129 rate - an array of the rates (Hz) where rate[i] is active on interval 130 [t[i],t[i+1]] 131 131 t - an array specifying the time bins (in milliseconds) at which to 132 132 specify the rate 133 rate - an array of the rates (Hz) where rate[i] is active on interval 134 [t[i],t[i+1]] 135 t_stop - lenght of time to simulate process (in ms) 133 t_stop - length of time to simulate process (in ms) 136 134 array - if True, a numpy array of sorted spikes is returned, 137 135 rather than a SpikeList object. … … 192 190 193 191 Inputs: 192 a,b - arrays of the parameters of the gamma PDF where a[i] and b[i] 193 will be active on interval [t[i],t[i+1]] 194 194 t - an array specifying the time bins (in milliseconds) at which to 195 195 specify the rate 196 a,b - arrays of the parameters of the gamma PDF where a[i] and b[i] 197 will be active on interval [t[i],t[i+1]] 198 t_stop - lenght of time to simulate process (in ms) 196 t_stop - length of time to simulate process (in ms) 199 197 array - if True, a numpy array of sorted spikes is returned, 200 198 rather than a SpikeList object. … … 202 200 Note: 203 201 t_start=t[0] 204 a is a dimensionless quantity > 0, but typically on the order of 2-10.202 a is a dimensionless quantity > 0, but typically on the order of 2-10. 205 203 a = 1 results in a poisson process. 206 204 b is assumed to be in units of 1/Hz (seconds). … … 218 216 See also: 219 217 inh_poisson_generator, gamma_hazard 220 221 218 """ 222 219

