Obtain specific sleep segment based on day, indices, etc.
SearchSleepSeg(
date,
Y,
idx_start,
idx_end,
NoPA_cut = 0.7,
sleep_mins = 30,
SI_i,
tz = "GMT"
)list of validated sleep segments
date of interest
vector containing validated sleep counts
start index of sleep segment
end index of sleep segment
percent of 0 counts to define NoPA segments
threshold number of minutes to define sleep segment
estimated sleep intervals based on sleep diary data
timezone, default is GMT