Slow-Wave-Activity- The code is to compute the power of the slow wave activity, example in simulated signal: Example in real signal Example of averaging all the channels: