Pulse-Averaging discriminator