Returns a named list of all device- and study-specific parameter values used
by the zeitR pipeline when processing ActTrust recordings. Passing this list
(or a modified copy) to run_pipeline() via the params argument fully
controls which values each detector stage receives, without having to touch
the individual function calls.
Details
The list is organised into four named sections that map directly to the four pipeline stages:
offwristParameters for
detect_offwrist_bimodal(). These values were validated against the Condor circadiaBase pipeline using ActTrust hardware. The refinement stage (.bimodal_refine_acttrust) is device-specific and currently only validated for ActTrust.sleepParameters for
detect_sleep_crespo().sleep_quantile(0.365) is the ActTrust CSPD wrapper value; the original Crespo (2012) algorithm uses 1/3.napParameters for
detect_naps_crespo(), passed as theparamsargument. Equivalent to.cspd_nap_params().wasoParameters for
compute_waso().
To adapt the pipeline for a different device, copy the list, modify the
relevant values, and pass it to run_pipeline():
p <- acttrust_params()
p$sleep$sleep_quantile <- 1/3 # use the original Crespo threshold
result <- run_pipeline("recording.txt", params = p)See also
run_pipeline() for the pipeline entry point.