Simple algorithm to determine sleep apnea from a signal.