Compute TST90, the percentage of time during sleep with an oxygen saturation below 90.

tst90(spo2_signal, sRate, startTime, hypnogram)

Arguments

spo2_signal

The SpO2 signal vector.

sRate

The SpO2 signal vector sample rate.

startTime

The SpO2 signal start time.

hypnogram

Events dataframe containing hypnogram.