R/events.R
smooth_liang2012.Rd
Smooth hypnogram according to the 11 rules described by Liang & Al.
smooth_liang2012(hypnogram)
A hypnogram dataframe.
A smoothed hypnogram dataframe.
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.