SearchSleepSeg {ActiSleep} | R Documentation |
Find specific sleep segment
Description
Obtain specific sleep segment based on day, indices, etc.
Usage
SearchSleepSeg(
date,
Y,
idx_start,
idx_end,
NoPA_cut = 0.7,
sleep_mins = 30,
SI_i,
tz = "GMT"
)
Arguments
date |
date of interest |
Y |
vector containing validated sleep counts |
idx_start |
start index of sleep segment |
idx_end |
end index of sleep segment |
NoPA_cut |
percent of 0 counts to define NoPA segments |
sleep_mins |
threshold number of minutes to define sleep segment |
SI_i |
estimated sleep intervals based on sleep diary data |
tz |
timezone, default is GMT |
Value
list of validated sleep segments
[Package ActiSleep version 0.2.2 Index]