Apply z score to raw object

External Email - Use Caution

Hi,

I am working with RawCNT object which contains EEG data. I need to
standardize the data using z score. How can I do that in mne?

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200303/ec715a09/attachment.html

External Email - Use Caution

you can do this with:

https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw.apply_function

something like this

raw.apply_function(lambda x: (x - np.mean(x) / np.std(x))

HTH
Alex