A method and a system for ensemble averaging signals in a pulse oximeter,
including receiving first and second electromagnetic radiation signals
from a blood perfused tissue portion corresponding to two different
wavelengths of light, obtaining an assessment of the signal quality of
the electromagnetic signals, selecting weights for an ensemble averager
using the assessment of signal quality, and ensemble averaging the
electromagnetic signals using the ensemble averager.