previous next Up Title Contents

AnSpikeGen_Carney: Auditory Nerve Spike generation (1993)


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

Generic Module Routines

This module has the standard Generic Module Routines (see Basic Module Routines used in Generic Programming).

The RunModel_ANSpikeGen_Carney(...) Process Routine

Syntax
BOOLN RunModel_ANSpikeGen_Carney(EarObjectPtr data);


Returns
TRUE if the process is successful, otherwise it returns FALSE.

The SetDischargeCoeffC0_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetDischargeCoeffC0_ANSpikeGen_Carney(double theDischargeCoeffC0);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetDischargeCoeffC1_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetDischargeCoeffC1_ANSpikeGen_Carney(double theDischargeCoeffC1);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetDischargeTConstS0_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetDischargeTConstS0_ANSpikeGen_Carney(double theDischargeTConstS0);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetDischargeTConstS1_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetDischargeTConstS1_ANSpikeGen_Carney(double theDischargeTConstS1);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetMaxThreshold_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetMaxThreshold_ANSpikeGen_Carney(double theMaxThreshold);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetNumFibres_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetNumFibres_ANSpikeGen_Carney(double theNumFibres);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetPars_ANSpikeGen_Carney(...) Routine

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.

The SetPulseDuration_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetPulseDuration_ANSpikeGen_Carney(double thePulseDuration);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetPulseMagnitude_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetPulseMagnitude_ANSpikeGen_Carney(double thePulseMagnitude);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

The SetRanSeed_ANSpikeGen_Carney(...) Routine

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.

The SetRefractoryPeriod_ANSpikeGen_Carney(...) Routine

Syntax
BOOLN SetRefractoryPeriod_ANSpikeGen_Carney (double theRefractoryPeriod);


Returns
TRUE if the function is successful, otherwise it returns FALSE.

Example: Tests/Models/Auditory_N/CarneySpike.c

Parameter file: CarneySpike.par:
#
# 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).
Output

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.


previous next Up Title Contents