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
b615d2d7
Commit
b615d2d7
authored
6 years ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
identification_analysis.m: Fix bug introduced in
60d95b65
We already used a variable called offset
parent
3b696352
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1637
identification_analysis.m: Fix bug introduced in 60d95b65f2e1f3937ba1099c6c6f79fb5cab42f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/identification_analysis.m
+5
-5
5 additions, 5 deletions
matlab/identification_analysis.m
with
5 additions
and
5 deletions
matlab/identification_analysis.m
+
5
−
5
View file @
b615d2d7
...
...
@@ -124,20 +124,20 @@ if info(1)==0
ide_strength_J_prior
=
NaN
(
1
,
nparam
);
if
init
ide_uncert_unnormaliz
=
NaN
(
1
,
nparam
);
offset
=
0
;
if
prior_exist
offset_prior
=
0
;
if
~
isempty
(
estim_params_
.
var_exo
)
normaliz_prior_std
=
bayestopt_
.
p2
(
1
:
estim_params_
.
nvx
)
'
;
% normalize with prior standard deviation
offset
=
offset
+
estim_params_
.
nvx
+
estim_params_
.
nvn
;
offset
_prior
=
offset
_prior
+
estim_params_
.
nvx
+
estim_params_
.
nvn
;
else
normaliz_prior_std
=
[];
end
if
~
isempty
(
estim_params_
.
corrx
)
normaliz_prior_std
=
[
normaliz_prior_std
bayestopt_
.
p2
(
offset
+
1
:
offset
+
estim_params_
.
ncx
)
'
];
% normalize with prior standard deviation
offset
=
offset
+
estim_params_
.
ncx
+
estim_params_
.
ncn
;
normaliz_prior_std
=
[
normaliz_prior_std
bayestopt_
.
p2
(
offset
_prior
+
1
:
offset
_prior
+
estim_params_
.
ncx
)
'
];
% normalize with prior standard deviation
offset
_prior
=
offset
_prior
+
estim_params_
.
ncx
+
estim_params_
.
ncn
;
end
if
~
isempty
(
estim_params_
.
param_vals
)
normaliz_prior_std
=
[
normaliz_prior_std
bayestopt_
.
p2
(
offset
+
1
:
offset
+
estim_params_
.
np
)
'
];
% normalize with prior standard deviation
normaliz_prior_std
=
[
normaliz_prior_std
bayestopt_
.
p2
(
offset
_prior
+
1
:
offset
_prior
+
estim_params_
.
np
)
'
];
% normalize with prior standard deviation
end
% normaliz = max([normaliz; normaliz1]);
% normaliz1(isinf(normaliz1)) = 1;
...
...
This diff is collapsed.
Click to expand it.
Johannes Pfeifer
@JohannesPfeifer
mentioned in commit
5fa8d26c
·
6 years ago
mentioned in commit
5fa8d26c
mentioned in commit 5fa8d26c03cda3be550bf9daf9c50dd204d3e6dc
Toggle commit list
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