segment.impose_deadtime {scbursts}R Documentation

Imposes a deadtime to a segment by removing any dwell that is shorter than the deadtime.

Description

The user specifies a deadtime in microseconds. The function effectively undoes the work of the event detection algorithm by reverting the conductance level (of the brief dwell) back to the previous conductance level in the time sequence. The function then returns a collapsed segment containing alternating dwells.

Usage

segment.impose_deadtime(segment, deadtime)

Arguments

segment

the segment containing dwells and states.

deadtime

the briefest possible event in microseconds.

Value

A modified copy of the original segment

Examples


# It's more likely that you created states or dwells with some function
states  <-  c(0,    0.2,    0,    1,    0,  0.5,    0,  0.7,    0,    1)
dwells  <-  c(0.1,  1.1,  0.5,  0.2,  1.0,  1.1,  0.6,  1.1,  0.8,  1.1)
my_burst <- segment.create(states, dwells, seg=1, start_time=3.14159, name="example_segment")

my_burst_d <- segment.impose_deadtime(my_burst, deadtime=0.3)


[Package scbursts version 1.6 Index]