previous next Up Title Contents

UtSpikeList Module


General Description

This utility module contains the routines for producing a spike train list from a signal. The module is This implementation uses a linked list to record the spike times. The list can be re-used, or it can retain the previous values. The main module routines are shown below.

The GenerateList_SpikeList(...) Routine

Syntax
BOOLN GenerateList_SpikeList(SpikeListSpecPtr listSpec, double eventThreshold, SignalDataPtr signal);


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

The ResetListSpec_SpikeList(...) Routine

Syntax
BOOLN ResetListSpec_SpikeList(SpikeListSpecPtr listSpec);


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

The FreeListSpec_SpikeList(...) Routine

Syntax
void FreeListSpec_SpikeList(SpikeListSpecPtr *p);


Returns
None

Example

Tests/Utilities/SpikeList.c

Parameter file . SpikeList.par:

#

# Main Parameter file

#

output.dat Name of output file.

# Module specifications.

#Par. file Name Description

#--------- ----- -------------

PulseTr1.par PulseTrain Stimulus generation paradigm.

# Miscellaneous parameters

4 No. of repeated runs.

0.0 Event threshold for spikes (units).




Comments:

This test program outputs the spike positions for each channel. The example parameter files should produce the following result:

output.dat:

channel[0]: 0.003 0.0058 0.0086 0.0114 0.0141 0.0169 0.0197


previous next Up Title Contents