| File
name
|
MoANSGCarney.[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
Carney's spike generation algorithm described in [3.], and was indeed
revised from her code.
|
| Example
parameter file format
|
1 Random number seed. 1 Number of fibres. 0.05e-3 Excitary post-synaptic pulse duration (s). 4.3 Pulse magnitude (nA?). 0.75e-3 Refractory period (seconds). 100 Maximum threshold increase following discharge, Hmax (spikes/s). 0.55 Coefficient for discharge history effect, c0 (s). 0.45 Coefficient for discharge history effect, c1 (s). 0.0008 Time constant for discharge history effect, s0 (s). 0.025 Time constant for discharge history effect, s1 (s). |
| Test
program directory
|
Tests/Models/Auditory_N
|
| Syntax
|
BOOLN RunModel_ANSpikeGen_Carney(EarObjectPtr
data);
|
| Returns
|
TRUE
if the process is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetDischargeCoeffC0_ANSpikeGen_Carney(double
theDischargeCoeffC0);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetDischargeCoeffC1_ANSpikeGen_Carney(double
theDischargeCoeffC1);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetDischargeTConstS0_ANSpikeGen_Carney(double
theDischargeTConstS0);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetDischargeTConstS1_ANSpikeGen_Carney(double
theDischargeTConstS1);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetMaxThreshold_ANSpikeGen_Carney(double
theMaxThreshold);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetNumFibres_ANSpikeGen_Carney(double
theNumFibres);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetPars_ANSpikeGen_Carney(long ranSeed, int
numFibres, double pulseDuration, double pulseMagnitude,
double refractoryPeriod, double maxThreshold, double
dischargeCoeffC0, double dischargeCoeffC1 double
dischargeTConstS0, double dischargeTConstS1);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetPulseDuration_ANSpikeGen_Carney(double
thePulseDuration);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetPulseMagnitude_ANSpikeGen_Carney(double
thePulseMagnitude);
|
| Returns
|
TRUE
if the function is successful, otherwise it returns FALSE.
|
| Syntax
|
BOOLN SetRanSeed_ANSpikeGen_Carney(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_Carney (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. Carney1SG.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 [51] Output 1 for Carney AN spike generation test.
Figure [52] Output 2 for Carney AN spike generation test.
Comments:
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.