skdh.sleep.TotalSleepTime#
- class skdh.sleep.TotalSleepTime#
Compute the total time spent asleep from 1 minute epoch sleep predictions.
Methods
predict(sleep_predictions)- predict(sleep_predictions)#
- Parameters:
- sleep_predictionsnumpy.ndarray
Boolean array indicating sleep (True = sleeping).
- Returns:
- tstint
Number of minutes spent asleep during the total sleep opportunity.