bursts.defined_by_tcrit {scbursts} | R Documentation |
Divide a recording into bursts defined by a critical time.
Description
Split segment at long pauses, dividing the segment into multiple -shorter- segments (which are the bursts), Along with the interburst closings, which are referred to as "gaps". (Default time units are seconds)
Usage
bursts.defined_by_tcrit(segments, t_crit, units = "s")
Arguments
segments |
A segment or multiple segments with $states and $dwells. NOTE: separate segments will remain split, regardless of why they were originally divided. |
t_crit |
Critical time at which to divide bursts (in seconds by default) |
units |
what unit the critical time is in ('s','ms','us', or 'ns') |
Value
bursts. Which is a list of segments starting and ending in 1 states (open dwell)
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")
head(bursts[[1]])
[Package scbursts version 1.6 Index]