a switching - type charging circuit is described wherein the power factor of the circuit has been optimized . the switching - type charging circuit utilizes a dual loop feedback system to control the input and output current of the circuit . the dual feedback loop system utilizes a sinusoidal voltage reference in conjunction with a pulse width modulation circuit to force the input impedance of the circuit to appear substantially purely resistive .