recurrence_intervals: Calculate Recurrence Intervals Between Motor Units or Neuron...

Description Usage Arguments Value

View source: R/recurrence_bin_functions.R

Description

Take two vectors representing time points of motor unit or neuron discharges and calculate multi-order recurrence times between them. This function will return recurrence times in whatever unit is input but will only accept numeric vectors (e.g. 0.01 sec, 25 ms, or 17.5 minutes).

Usage

1
recurrence_intervals(motor_unit_1, motor_unit_2, order = 1)

Arguments

motor_unit_1, motor_unit_2

Numeric vectors of strictly increasing numbers denoting sequential discharge times of a motor unit or neuron or any strictly increasing point process.

order

Numeric as a positive integer for the number of forward and backward orders for calculating recurrence times. Default = 1.

Value

A list of lists containing the names of each discharge train used, number of discharges, the interspike intervals (ISI), mean ISI, and the recurrence times associated with each order.


tweedell/motoRneuron documentation built on Dec. 11, 2018, 1:35 a.m.