check_feasible: Check a step function is feasible.

Description Usage Arguments

View source: R/Shared.R

Description

A function that checks that the partition and heights of a step function is feasible to be used as an intensity function. The function produces an error if the intensity is not feasible.

Usage

1
2
3
4
5
6
7
8
9
check_feasible(
  d.spikes,
  partition = NA,
  heights = NA,
  x = NA,
  end.time = NA,
  T.min = NULL,
  max.T.min = NA
)

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.

max.T.min

If T.min != NULL, the maximum allowable refractory period.


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