There are many possibilities familiar to those versed in the art for the realization of the circuit, one of them is the depicted circuit having an operational amplifier.
The average value of the difference signal (e) is formed by the circuit (13).