S Sleep (Unified) Calculates S during sleep

unified_Spfun(ss, tas, tau_s, U0, tau_la, ls)

Arguments

ss

S upon falling asleep

tas

Time asleep

tau_s

Controls rate of decay in S during sleep

U0

Upper asymptote

tau_la

Rate of change in lower asymptote

ls

Lower asymptote at sleep onset