在MATLAB中有一个函数mscohere
我需要在Python中实现它。 的MATLAB代码如下:Python中是否有MATLAB函数`mscohere`的模拟器?
[Cxy,~] = mscohere(LS,RS);
LS,RS - 阵列型浮动。
做模块来计算一致性吗?或者任何人都可以预期它在Python?
Documentation mscohere
in MATLAB
在MATLAB中有一个函数mscohere
我需要在Python中实现它。 的MATLAB代码如下:Python中是否有MATLAB函数`mscohere`的模拟器?
[Cxy,~] = mscohere(LS,RS);
LS,RS - 阵列型浮动。
做模块来计算一致性吗?或者任何人都可以预期它在Python?
Documentation mscohere
in MATLAB
是的,它具有一个在SciPy的模块中:
scipy.signal.coherence(x, y, fs=1.0, window='hann', nperseg=256, noverlap=None, nfft=None, detrend='constant', axis=-1)
结合实例详细文档可以发现here
也许[此](http://stackoverflow.com/问题/ 31829604/why-is-cohere-function-in-matplotlib-python-give-answer-different-from-mscoher)可能是一个很好的起点。 – Abdou