skdh.sleep.NumberWakeBouts#
- class skdh.sleep.NumberWakeBouts#
Compute the number of waking bouts during the total sleep opportunity, excluding the first wake before sleep, and last wake bout after sleep.
Methods
predict(sleep_predictions)- predict(sleep_predictions)#
- Parameters:
- sleep_predictionsnumpy.ndarray
Boolean array indicating sleep (True = sleeping).
- Returns:
- nwbint
Number of waking bouts.