Compute network spikes
Description
Compute the network spikes in an MEA recording, by averaging over all the electrodes in the array.
Usage
1  compute.ns(s, ns.T, ns.N,sur,plot)

Arguments
s 
MEA data structure 
ns.T 
Bin width (in msec) for counting spikes. 
ns.N 
Threshold number of active electrodes required to make network spike 
sur 
How many bins either side of peak to retain when computing the mean network spike 
plot 
Set to TRUE to plot network spikes. 
ns 
A network spike data structure, returned by

... 
Other plot arguments to pass to 
Details
To see the mean network spikes after they have computed, just look at the mean object.
If you wish to see the individual network spikes, try show.ns(ns, ...) where the remaining args are passed to the plot function.
Value
A list with the following elements:
counts 
vector giving the number of active electrodes in each bin; this can be very long! 
ns.N 
The value of ns.N used. 
ns.T 
the value of ns.T used. 
mean 
The profile of the mean network spike (this is a time series object) 
measures 
If N network spikes were found, this is a matrix with N rows, one per network spike. 
brief 
A short vector summarizing the network spikes. 
Author(s)
Stephen Eglen
References
Eytan and Marom (2006) J Neuroscience.
See Also
sanger.read.spikes
Examples
1 2 3 4 5 6 7 8 9 10 