Smooth hypnogram according to the 11 rules described by Liang & Al.

smooth_liang2012(hypnogram)

Arguments

hypnogram

A hypnogram dataframe.

Value

A smoothed hypnogram dataframe.

References

Liang, Sheng-Fu, Chin-En Kuo, Yu-Han Hu, and Yu-Shian Cheng. “A Rule-Based Automatic Sleep Staging Method.” Journal of Neuroscience Methods 205, no. 1 (March 2012): 169–76. https://doi.org/10.1016/j.jneumeth.2011.12.022.