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
Dóra Kocsis
dynare
Commits
47eac6ac
Commit
47eac6ac
authored
Apr 14, 2010
by
Marco Ratto
Browse files
1) copy metropolis files
2) bug fix with mh_drop
parent
1fc0fbc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/McMCDiagnostics.m
View file @
47eac6ac
...
...
@@ -102,7 +102,13 @@ if isnumeric(options_.parallel),
UDIAG
=
fout
.
UDIAG
;
clear
fout
else
[
fout
,
nBlockPerCPU
,
totCPU
]
=
masterParallel
(
options_
.
parallel
,
1
,
npar
,{},
'McMCDiagnostics_core'
,
localVars
,
[],
options_
.
parallel_info
);
ModelName
=
M_
.
fname
;
if
~
isempty
(
M_
.
bvar
)
ModelName
=
[
M_
.
fname
'_bvar'
];
end
NamFileInput
=
{[
M_
.
dname
'/metropolis/'
],[
ModelName
'_mh*_blck*.mat'
]};
[
fout
,
nBlockPerCPU
,
totCPU
]
=
masterParallel
(
options_
.
parallel
,
1
,
npar
,
NamFileInput
,
'McMCDiagnostics_core'
,
localVars
,
[],
options_
.
parallel_info
);
UDIAG
=
fout
(
1
)
.
UDIAG
;
for
j
=
2
:
totCPU
,
UDIAG
=
cat
(
3
,
UDIAG
,
fout
(
j
)
.
UDIAG
);
...
...
@@ -295,7 +301,7 @@ tmp = sortrows(tmp,1);
ligne
=
0
;
for
iter
=
Origin
:
StepSize
:
NumberOfDraws
ligne
=
ligne
+
1
;
linea
=
ceil
(
0.5
*
iter
);
linea
=
ceil
(
options_
.
mh_drop
*
iter
);
n
=
iter
-
linea
+
1
;
cinf
=
round
(
n
*
ALPHA
/
2
);
csup
=
round
(
n
*
(
1
-
ALPHA
/
2
));
...
...
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