2016-08-03 24 views
1

MATLABには、関数mscohereがあります。私はそれをPythonで実装する必要があります。 - アレイのfloat型Pythonに「mscohere」というMATLAB関数のアナログがありますか?

[Cxy,~] = mscohere(LS,RS); 

LS、RSを次のように MATLABコードです。

モジュールを一貫性の計算に使用しますか?それとも誰もがPythonでそれを期待できますか?

Documentation mscohere in MATLAB

+1

[本](http://stackoverflow.com/を見出すことができます質問/ 31829604/matlabのようなcoherence-function-in-matplotlib-python-give-answer-different-from-mscoher)が良い出発点になるかもしれません。 – Abdou

答えて

2

はい、scipyのダウンロードモジュール内の1つを有する:例と

scipy.signal.coherence(x, y, fs=1.0, window='hann', nperseg=256, noverlap=None, nfft=None, detrend='constant', axis=-1) 

詳細なドキュメントは、多分here

+0

しかし、私は 'matplotlib.mlab.cohere(x、y、NFFT = 256、Fs = 1)' http://matplotlib.org/api/mlab_api.html#matplotlib.mlab.cohere – EmptyMan

+0

を使っています。私は戻ってきました:) – EmptyMan

関連する問題