フィルターのクリア

need to calculate a cumulative mean in mm1 simulation

2 ビュー (過去 30 日間)
Laura Barroso
Laura Barroso 2018 年 4 月 24 日
コメント済み: Bruno Tondin 2018 年 4 月 28 日
I generate output data (see picture) and I need to calculate a cumulative mean as the simulation output data is being generated. Then a count ω, is made of the number of times the output data cross the cumulative mean. I wrote the code bellow but it doesn't work.
function [ wsys wque ] = crossingmeanrule(cli, lambda, rep, win)
if nargin < 1 cli=3000; end
if nargin < 2 lambda = 90; end
if nargin < 3 rep=10; end
if nargin < 4 win=500; end
[ tsys tque ] = mm1rep(cli, lambda, rep);
w = 25;
count = 0;
for count = 1:w
y = cummean([ tsys tque ], rep);
end
  1 件のコメント
Bruno Tondin
Bruno Tondin 2018 年 4 月 28 日
Impossível testar o código sem as funções "mm1prs" e "cummean"

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by