Skip to content
Snippets Groups Projects
Commit 2ee32205 authored by Marco Ratto's avatar Marco Ratto Committed by Houtan Bastani
Browse files

Bug fix for odd Nc

parent 0aee5cbf
Branches
Tags
No related merge requests found
......@@ -30,6 +30,9 @@ function Ifac = mcmc_ifac(X, Nc)
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
Nc = min(Nc, length(X)/2);
if mod(Nc,2),
Nc=Nc-1;
end
AcorrXSIM = autocorr(X(:), Nc);
%
%Calculate the Parzen Weight
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment