Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
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
Sébastien Villemot
dynare
Commits
a9a28f4f
Commit
a9a28f4f
authored
1 year ago
by
Johannes Pfeifer
Browse files
Options
Downloads
Patches
Plain Diff
univariate_kalman_filter.m: minor clean-up
parent
62b0129a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/kalman/likelihood/univariate_kalman_filter.m
+0
-4
0 additions, 4 deletions
matlab/kalman/likelihood/univariate_kalman_filter.m
with
0 additions
and
4 deletions
matlab/kalman/likelihood/univariate_kalman_filter.m
+
0
−
4
View file @
a9a28f4f
...
...
@@ -126,7 +126,6 @@ QQ = R*Q*transpose(R); % Variance of R times the vector of structural innova
t
=
start
;
%
Initialization
of
the
time
index
.
lik
=
zeros
(
smpl
,
pp
);
%
Initialization
of
the
matrix
gathering
the
densities
at
each
time
and
each
observable
LIK
=
Inf
;
%
Default
value
of
the
log
likelihood
.
oldP
=
Inf
;
l2pi
=
log
(
2
*
pi
);
notsteady
=
1
;
...
...
@@ -149,11 +148,9 @@ else
else
C
=
Z
;
end
dC
=
zeros
(
pp
,
mm
,
k
);
%
either
selection
matrix
or
schur
have
zero
derivatives
if
analytic_derivation
==
2
Hess
=
zeros
(
k
,
k
);
%
Initialization
of
the
Hessian
D2a
=
zeros
(
mm
,
k
,
k
);
%
State
vector
.
d2C
=
zeros
(
pp
,
mm
,
k
,
k
);
else
asy_hess
=
D2T
;
Hess
=
[];
...
...
@@ -178,7 +175,6 @@ while notsteady && t<=last %loop over t
else
z
=
Z
(
d_index
);
end
oldP
=
P
(
:
);
for
i
=
1
:
rows
(
z
)
%
loop
over
i
if
Zflag
prediction_error
=
Y
(
d_index
(
i
),
t
)
-
z
(
i
,
:
)
*
a
;
%
nu_
{
t
,
i
}
in
6
.
13
in
DK
(
2012
)
...
...
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