Simple heuristic algorithm to determine sleep apnea from a sleep signal.