Briefly, the raw sig- nal was band-pass filtered using a two-way least-squares FIR filter in three frequency ranges: low theta (3-5 Hz), hightheta (6-12Hz), andgamma (30-80Hz).
The signal envelope was extracted by calculating the module of the Hilbert transform.