Changeset 352
- Timestamp:
- 11/17/08 14:30:50 (2 months ago)
- Files:
-
- trunk/src/stgen.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/stgen.py
r337 r352 857 857 q - the shot jump for each spike 858 858 tau - the shot decay time constant in milliseconds 859 dt - the resolution of the resulting shotnoise in milliseconds 859 860 t_start - start time of the resulting AnalogSignal 860 861 If unspecified, t_start of spike_train is used 861 862 t_stop - stop time of the resulting AnalogSignal 862 863 If unspecified, t_stop of spike_train is used 863 dt - the resolution of the resulting shotnoise in milliseconds864 864 array - if True, returns (shotnoise,t) as numpy arrays, otherwise an AnalogSignal. 865 865 eps - a numerical parameter indicating at what value of … … 916 916 y = numpy.convolve(a,kern)[0:len(t)] 917 917 918 if array: 919 signal_t = numpy.arange(window_start,t_stop,dt) 920 signal_y = y[-len(t):] 921 return (signal_y,signal_t) 922 923 918 924 result = AnalogSignal(y,dt,t_start=0.0,t_stop=t_stop-t_start) 919 925 result.time_offset(t_start)

