by analysing the shape of a waveform