Piecewise-constant levels
For levels Ik lasting Δtk, use time-weighted contributions. The durations must add up to T. Do not average the RMS of separate intervals.
DC plus a zero-mean AC component
For any periodic waveform with finite RMS, the total mean square equals the square of its mean plus the mean square of its zero-mean AC part, defined as i(t) − ⟨i⟩. Every term uses the same averaging interval. Adding squared RMS values of arbitrary components requires a zero cross term (orthogonality), as for different harmonic orders averaged over a full fundamental period. In rectifiers, the extra subscript o denotes output: Io,dc is the mean of io(t), not necessarily the mean source current.
Measurement note: an AC-coupled RMS reading excludes DC. Also, the mean of the absolute value is not the signed mean and is generally not RMS. Check what a meter actually reports.
Average-responding and true-RMS meters
Specify both response and coupling: an AC-only true-RMS measurement rejects DC; total RMS requires AC+DC. For an ideal DC-coupled, sine-calibrated average-responding measurement, the indication is:
For a positive sine peak , a full-wave rectified sine gives , equal to its total RMS. A half-wave rectified sine gives , instead of its total RMS : about 29.3 % low. These examples preserve DC at the meter input.
An AC-coupled meter sees a different waveform after DC rejection, so do not transfer these indications to it. “True RMS” alone does not specify AC+DC; bandwidth and crest-factor limits also matter.
Technical reference: understand true-RMS measurements (Keysight).