Calculate average current for DC, sine, rectified, and PWM waveforms using the integral over one period or quick closed-form formulas for common cases.