Simulink上での分散の計算
Ältere Kommentare anzeigen
Simulink上で,時刻tの時点において,tからNステップ分前までのデータを用いてデータの分散を計算したく思っています。
良い方法をご教示いただけないでしょうか?
Akzeptierte Antwort
Weitere Antworten (2)
Toshinobu Shintai
am 14 Jun. 2024
1 Stimme
この配列に対して、平均を計算して、各要素から引き算したものの2乗和を計算し、Nで割れば分散を得ることができます。
Hiroshi Iwamura
am 16 Jun. 2024
1 Stimme
DSP System Toolbox をお持ちであれば、
Buffer ブロックを使うか、
Moving Variance ブロックでウィンドウ幅を指定することでもできます。
Varianceブロックでもできますが、こちらの "running" モードは廃止予定です。
Kategorien
Mehr zu 配列と行列の数学 finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!