A pulse oximeter system is presently disclosed. The pulse oximeter system includes a processor and circuitry. The processor and circuitry are configured to receive light waveforms from a sensor, determine at least one signal quality metric for the light waveforms, calculate at least one weight using a continuously variable weighting function based on the at least one signal quality metric, and ensemble average the light waveforms using the at least one calculated weight.