Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Johannes Pfeifer
dynare
Commits
e84c8dc1
Commit
e84c8dc1
authored
May 31, 2010
by
Marco Ratto
Browse files
Header/commenting changes
parent
0450edda
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/McMCDiagnostics.m
View file @
e84c8dc1
...
...
@@ -13,6 +13,10 @@ function McMCDiagnostics(options_, estim_params_, M_)
% SPECIAL REQUIREMENTS
% none
% PARALLEL CONTEXT
% See the comment in random_walk_metropolis_hastings.m funtion.
% Copyright (C) 2005-2008,2010 Dynare Team
%
% This file is part of Dynare.
...
...
@@ -86,6 +90,9 @@ end
disp
(
'MCMC Diagnostics: Univariate convergence diagnostic, Brooks and Gelman (1998):'
)
% The mandatory variables for local/remote parallel
% computing are stored in localVars struct.
localVars
.
MhDirectoryName
=
MhDirectoryName
;
localVars
.
nblck
=
nblck
;
localVars
.
NumberOfMcFilesPerBlock
=
NumberOfMcFilesPerBlock
;
...
...
@@ -97,10 +104,13 @@ localVars.NumberOfLines = NumberOfLines;
localVars
.
time
=
time
;
localVars
.
M_
=
M_
;
% Like sequential execution!
if
isnumeric
(
options_
.
parallel
),
fout
=
McMCDiagnostics_core
(
localVars
,
1
,
npar
,
0
);
UDIAG
=
fout
.
UDIAG
;
clear
fout
% Parallel execution!
else
ModelName
=
M_
.
fname
;
if
~
isempty
(
M_
.
bvar
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment