pyActigraphy.sleep.SleepDiary.total_bed_time

SleepDiary.total_bed_time(state='NIGHT')[source]

Returns the total in-bed time

Parameters

state (str, optional) – State of interest. Default is ‘NIGHT’.

Returns

  • mean (pd.Timedelta) – Mean duration of the required state.

  • std (pd.Timedelta) – Standard deviation of the durations of the required state.