View source: R/061-pupil-advanced-representations-0-8.R
| pupil_activity_index | R Documentation |
Compute a transparent pupil activity index
pupil_activity_index(
y,
time_ms = seq_along(y),
sampling_rate_hz = NULL,
method = c("velocity", "frequency_contrast", "ripa_proxy"),
low_band = c(0.05, 0.5),
high_band = c(0.5, 4),
fast_window_ms = 250,
slow_window_ms = 750
)
y |
Pupil signal. |
time_ms |
Time vector. |
sampling_rate_hz |
Sampling rate for frequency methods. |
method |
'velocity', 'frequency_contrast', or 'ripa_proxy'. |
low_band, high_band |
Frequency bands for frequency contrast. |
fast_window_ms, slow_window_ms |
Smoothing windows for the RIPA-style proxy. |
A numeric value or vector containing a transparent pupil activity index.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.