A switching regulator provided according to an aspect of the present
invention contains uses one or more error samples from prior iterations,
in addition to an error sample of the present iteration, to determine the
correction for the present iteration. Due to the use of multiple samples,
a switching regulator may provide a regulated signal which is at least
substantially constant even in the presence of line/load variations. A
controller determining the correction can be implemented either in analog
or digital domain.