Skip to content
Snippets Groups Projects
Verified Commit bcd926ea authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Sébastien Villemot
Browse files

geweke_moments.m: correctly use parameter instead of hard-coded value

(cherry picked from commit 14ef010b)
parent e70a8d8f
Branches
Tags
1 merge request!1815WIP Cherry-picks for 4.6
......@@ -89,7 +89,7 @@ results_struct.rne_iid = results_vec(1,4);
centered_window_means=window_means-total_mean;
autocov_grouped_means=zeros(n_groups,1);
for lag=0:n_groups-1
autocov_grouped_means(lag+1)=centered_window_means(lag+1:n_groups,1)'*centered_window_means(1:n_groups-lag,1)/100;
autocov_grouped_means(lag+1)=centered_window_means(lag+1:n_groups,1)'*centered_window_means(1:n_groups-lag,1)/n_groups;
end
% numerical standard error with tapered autocovariance functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment