A method of ensemble averaging signals in a pulse oximeter comprises receving 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 said electromagnetic signals, selecting weights for an ensemble averager using said assessment of signal quality, and ensemble averaging said electromagnetic signals using said ensemble averager.