Circuits for representing a single waveform by sampling