A plurality of the instantaneous envelope valures are used to calculate a running RMS value.
A level crossing threshold is determined using the running RMS value.