AnSpikeGen_Simple: Auditory Nerve Simple Spike Generation
File
name
|
MoANSGSimple.[ch]
|
|
|
Description
|
This
module expects to receive spike probabilities as an input signal, which are
then converted to spike events using a random number generator. It uses a
simple spike generation.
|
|
|
Example
parameter file format
|
1 Random number seed.
1 Number of fibres.
0.02e-3 Pulse duration (s).
4.3 Pulse magnitude (nA?).
1e-3 Refractory period (seconds).
|
|
|
Test
program directory
|
Tests/Models/Auditory_N
|
This module has the standard Generic Module Routines (see 0 Basic Module
Routines used in Generic Programming).
Syntax
|
BOOLN RunModel_ANSpikeGen_Simple(EarObjectPtr
data);
|
|
|
Returns
|
TRUE
if the process is successful, otherwise it returns FALSE.
|
Syntax
|
BOOLN SetNumFibres_ANSpikeGen_Simple(double
theNumFibres);
|
|
|
Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
Syntax
|
BOOLN SetPars_ANSpikeGen_Simple(long theRanSeed,
int numFibres, double pulseDuration, double
pulseMagnitude, double theRefractoryPeriod);
|
|
|
Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
Syntax
|
BOOLN SetPulseDuration_ANSpikeGen_Simple(double
thePulseDuration);
|
|
|
Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
Syntax
|
BOOLN SetPulseMagnitude_ANSpikeGen_Simple(double
thePulseMagnitude);
|
|
|
Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
Syntax
|
BOOLN SetRanSeed_ANSpikeGen_Simple(double
theRanSeed);
|
|
|
Special
Values
|
A
negative random number seed will change the sequence of random numbers used.
|
|
|
Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
Syntax
|
BOOLN SetRefractoryPeriod_ANSpikeGen_Simple(double
theRefractoryPeriod);
|
|
|
Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
#
# Main Parameter file
#
output1.dat Name of output file.
output2.dat Name of output file.
# Module specifications.
#Par. file Name Description
#--------- ----- -------------
StepFun1.par StepFun Stimulus generation paradigm.
Meddis86.par null Inner hair cell (IHC) model.
SpikeGn1.par Auditory nerve spike generation.
# Miscellaneous parameters
1 Number of repeated runs.
0.9 Probability amplitude 1.
0.01 Probability amplitude 2.
2.5e-3 Ramp up rise time for signal (s).
Figure [54] Output 1 for Simple AN spike generation test.
Figure [55] Output 2 for Simple AN spike generation test.
By applying a constant high input to the model, it spikes at the refractory
rate. Output 1 shows the accumulation of a number of runs, so the total number
of spikes should be dependent upon the number of runs specified in the main
parameter file for the test program.. Output 2 is also the result of multiple
runs, but it is reset each time so the total spikes should not be dependent
upon the number of runs