get_X: get_X()

Description Usage Arguments Value

View source: R/Shared.R

Description

Calculates the integral of the intensity function, where the intensity is a piece-wise constant function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_X(
  d.spikes,
  partition = NA,
  heights = NA,
  x = NA,
  end.time = NA,
  T.min = NULL,
  rm.end.time = T,
  int.method = "trapezium"
)

Arguments

d.spikes

Data frame containing spike sequences

partition

Partition of time experiment time. A vector of K values where the first entry is 0 and the last is the end of experiment time.

heights

Vector of (K-1) heights corresponding to the partition.

x

The intensity function

end.time

End of experiment time

T.min

Refractory period, default set to NULL.

rm.end.time

Flag, where if TRUE we remove the end time of the spike sequences.

int.method

Method for integration

Value

data frame containing the integral of the intensity between all spike times.


JPNotts/Package documentation built on Oct. 5, 2021, 2:04 p.m.