def envelope(x): """Generate a Hilbert envelope of the real signal x.""" return _np.abs(_sig.hilbert(x, axis=0))