| .sim_blinks | R Documentation |
Stamp blink artifacts (missing cores + occlusion flank spikes) onto a signal
.sim_blinks(
pupil,
centers,
core_samps,
flank_samps,
depth,
overshoot,
shape = "linear"
)
pupil |
Numeric pupil vector to modify |
centers |
Integer sample indices of blink centers |
core_samps |
Integer vector of blink core durations in samples |
flank_samps |
Blink flank duration in samples |
depth |
Leading occlusion dip depth (a.u.) |
overshoot |
Trailing recovery overshoot height (a.u.) |
shape |
Flank ramp shape: |
A list with the modified pupil, a logical core_mask (TRUE over
missing cores), a logical region_mask (TRUE over cores + flanks), and a
data frame df of blink start/end sample indices
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.