Print and Summary Methods for spikeTrain Objects

Share:

Description

Print and summary methods for spikeTrain objects.

Usage

1
2
3
4
## S3 method for class 'spikeTrain'
print(x,...)
## S3 method for class 'spikeTrain'
summary(object, timeUnit = "s", digits = 3, ...)

Arguments

x, object

A spikeTrain object.

timeUnit

The unit with which the occurrence times were measured.

digits

The number of digits used to print the summary (see round).

...

see print and summary.

Details

print.spikeTrain does in fact call the plot method for spikeTrain objects.

Value

print.spikeTrain generates a plot as a side effect.

summary.spikeTrain returns the number of spikes, the times of the first and last spikes, the mean inter-spike interval (ISI) and its sd as well as the mean and sd of the log(ISI) together with the shortest and longest ISIs.

Author(s)

Christophe Pouzat christophe.pouzat@gmail.com

See Also

as.spikeTrain, is.spikeTrain, renewalTestPlot, varianceTime, stepfun

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## load spontaneous data of 4 putative projection neurons
## simultaneously recorded from the cockroach (Periplaneta
## americana) antennal lobe
data(CAL1S)
## convert data into spikeTrain objects
CAL1S <- lapply(CAL1S,as.spikeTrain)
## look at the individual trains
## first the "raw" data
CAL1S[["neuron 1"]]
## next some summary information
summary(CAL1S[["neuron 1"]])

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.