plot_reference_correction.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:mne-hcp 作者: mne-tools 项目源码 文件源码
def plot_psd(X, label, Fs, NFFT, color=None):

    freqs, psd = welch(X, fs=Fs, window='hanning', nperseg=NFFT,
                       noverlap=int(NFFT * 0.8))
    freqs = freqs[freqs > 0]
    psd = psd[freqs > 0]
    plt.plot(np.log10(freqs), 10 * np.log10(psd.ravel()), label=label,
             color=color)


###############################################################################
# Now we read in the data
#
# Then we plot the power spectrum of the MEG and reference channels,
# apply the reference correction and add the resulting cleaned MEG channels
# to our comparison.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号