在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