Calculates S during sleep

TPM_Spfun(ha, g, bl, ss, tas)

Arguments

ha

High asymptote (typically = 14.3)

g

Rate of recovery (typically about -0.3813)

bl

Break point of sleep recovery (typically 12.2)

ss

S at falling asleep

tas

Time asleep (hours)

Value

S