bursts.get_gaps {scbursts} | R Documentation |
Get the gaps between bursts.
Description
Extract vector of gaps from the bursts. This is done using the start_time attribute, which is mostly hidden in the data. (The gaps at the ends may have length 0)
Usage
bursts.get_gaps(bursts)
Arguments
bursts |
The list of segments |
Value
A vector of N+1 gaps for N bursts times
Examples
infile <- system.file("extdata", "example1_tac.evt", package = "scbursts")
transitions <- evt.read(infile)
dwells <- evt.to_dwells(transitions)
dwells_c <- risetime.correct_gaussian(Tr=35.0052278, dwells, units="us")
bursts <- bursts.defined_by_tcrit(dwells_c, 100, units="ms")
gaps <- bursts.get_gaps(bursts)
head(gaps)
[Package scbursts version 1.6 Index]