Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Commits
d87484ec
Commit
d87484ec
authored
14 years ago
by
Jacob Smith
Browse files
Options
Downloads
Patches
Plain Diff
Changes to markov file in ms-sbvar to work with new code
parent
917b8e52
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/ms-sbvar/ms_write_markov_file.m
+4
-4
4 additions, 4 deletions
matlab/ms-sbvar/ms_write_markov_file.m
with
4 additions
and
4 deletions
matlab/ms-sbvar/ms_write_markov_file.m
+
4
−
4
View file @
d87484ec
...
...
@@ -8,7 +8,7 @@ function ms_write_markov_file(fname,M,options)
%/********************* Markov State Variable Information **********************/
%/******************************************************************************/
fprintf
(
fh
,
'//==
Flat Independent Markov States and
Simple Restrictions ==//\n\n'
);
fprintf
(
fh
,
'//==
Markov State Variables with
Simple Restrictions ==//\n\n'
);
%//This number is NOT used but read in.
...
...
@@ -33,8 +33,8 @@ function ms_write_markov_file(fname,M,options)
%//== column of the transition matrix. Each element must be positive. For each column,
%//== the relative size of the prior elements determine the relative size of the elements
%//== of the transition matrix and overall larger sizes implies a tighter prior.
fprintf
(
fh
,[
'//== Transition matrix prior for state_variable[%d]
. '
...
'(n_states x n_states) ==//\n'
],
i_chain
);
fprintf
(
fh
,[
'//== Transition matrix prior for state_variable[%d]
==//\n'
],
...
i_chain
);
Alpha
=
ones
(
n_states
,
n_states
);
for
i_state
=
1
:
n_states
p
=
1
-
1
/
options
.
ms
.
ms_chain
(
i_chain
)
.
state
(
i_state
)
.
duration
;
...
...
@@ -43,7 +43,7 @@ function ms_write_markov_file(fname,M,options)
fprintf
(
fh
,
'\n'
);
end
fprintf
(
fh
,[
'\n//==
Free
Dirichet dimensions for state_variable[%d]
'
...
fprintf
(
fh
,[
'\n//== Dirich
l
et dimensions for state_variable[%d] '
...
'==//\n'
],
i_chain
);
% fprintf(fh,'%d ',repmat(n_states,1,n_states));
fprintf
(
fh
,
'%d '
,
repmat
(
2
,
1
,
n_states
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment