skdh.sleep.PercentTimeAsleep#
- class skdh.sleep.PercentTimeAsleep#
Compute the percent 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:
- ptafloat
Percent time asleep of the total sleep opportunity.