Spike Train Generation

To generate spike trains, the user should create a description file referred to as a "generation file" or ".ndg file". The file allows the user to specify the type of algorithm for making spikes (listed below) in addition to three types of parameters: See .../libc/ndata.h for the format of the 'ndg' file.

Generation algorithms

General parameters

Distribution specifications for population parameters


EXAMPLE

#
#  Generate an `opld120' data file
#
poisson
nfiles 1
nrepeats 20
period 2000
sampling 1000.0
nth 1
rmu 0.0
rsigma 0.0
cycles i 16
tf i 64

nvar_link 7
lambda f   5   5   5  10  20  60 100  60  20  10   5   5    5  10  20  60 100  65  35  65 100  60  20  10  5  5
ori1   i   0  30  60  90 120 150 180 210 240 270 300 330  300 330   0  30  60  90 120 150 180 210 240 270  0  0
ampl1  i 512 512 512 512 512 512 512 512 512 512 512 512  512 512 512 512 512 512 512 512 512 512 512 512  0  0
odiam1 i 256 256 256 256 256 256 256 256 256 256 256 256  256 256 256 256 256 256 256 256 256 256 256 256  0  0
ori2   i  60  90 120 150 180 210 240 270 300 330   0  30   60  90 120 150 180 210 240 270 300 330   0  30  0  0
ampl2  i   0   0   0   0   0   0   0   0   0   0   0   0  512 512 512 512 512 512 512 512 512 512 512 512  0  0
odiam2 i 256 256 256 256 256 256 256 256 256 256 256 256  256 256 256 256 256 256 256 256 256 256 256 256  0  0

EXAMPLE

#
#  Generate A and B from a Poisson source C, by picking w/ p1 and p2
#
common_p
nfiles 20
ntrials 500
period 2000
sampling 1000.0
rs 200.0
p1 0.20
p2 0.20
toff     0.0
tsd      0.0
collision 1

npop 1
seed uniform_int 1777 1 10000

EXAMPLE

#
#  Generate Poisson spike trains.
#
poisson
nfiles 50
ntrials 500
period 2000
sampling 1000.0
nth 1
rmu 0.0
rsigma 0.0

nvar 1
lambda f 5.0 15.0 25.0 35.0 45.0 55.0 65.0 75.0 85.0 95.0

npop 1
seed uniform_int 1777 1 10000

EXAMPLE

#
#  Generate spike trains.
#
bimod
nfiles 20
ntrials 500
period 2000
sampling 1000.0
p 0.1
fpmin 0.005
fpmax 0.400
sigs 4.0
rsig 0.0
rmax 1.0

npop 1
seed uniform_int 1777 1 10000

EXAMPLE

#
#  Generate spike trains.
#
bimod
nfiles 24
period 2000
sampling 1000.0
p 0.1
fpmin 0.005
fpmax 0.400
sigs 4.0
rsig 0.0
rmax 1.0
lt_seed 73252
lt_sigma 5.0
lt_amp_sigma 0.1
lt_common 0
replicate 1

npop 2
seed uniform_int 1777 1 10000
ntrials list_int 30 82 60 60 30 30 90 60 90 60 60 30 119 35 56 150 30 60 60 90 30 58 210 90

EXAMPLE

#
#  Generate source and target spike trains to test efficacy measure
#
contrib
nfiles 1
ntrials 1000
period 2000
sampling 1000.0

psource  0.1
pcontrib 0.5
pother   0.1

toff     6.0
tsd      2.0

EXAMPLE

#
#  Generate S1 and S2 from a mixture of A, B, C
#
common
nfiles 1
ntrials 200
period 2000
sampling 1000.0

ra 20
rb 20
rc 20

toff     0.0
tsd      2.0

collision 0

seed 1777