def _compute_normalized_phase(data):
"""Compute normalized phase angles
Parameters
----------
data : ndarray, shape (n_epochs, n_sources, n_times)
The data to compute the phase angles for.
Returns
-------
phase_angles : ndarray, shape (n_epochs, n_sources, n_times)
The normalized phase angles.
"""
from scipy.signal import hilbert
return (np.angle(hilbert(data)) + np.pi) / (2 * np.pi)
ctps_.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录