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
f0ef6c93
Commit
f0ef6c93
authored
Feb 05, 2013
by
Stéphane Adjemian
Browse files
Removed call to gaussian_filter_bank routine in sequantial_importance_particle_filter.
parent
21055da5
Changes
1
Show whitespace changes
Inline
Side-by-side
matlab/particle/sequential_importance_particle_filter.m
View file @
f0ef6c93
...
...
@@ -97,8 +97,8 @@ ghuu = ReducedForm.ghuu;
ghxu
=
ReducedForm
.
ghxu
;
%
Get
covariance
matrices
.
Q
=
ReducedForm
.
Q
;
H
=
ReducedForm
.
H
;
Q
=
ReducedForm
.
Q
;
%
Covariance
matrix
of
the
structural
innovations
.
H
=
ReducedForm
.
H
;
%
COvariance
matrix
of
the
measurement
errors
.
if
isempty
(
H
)
H
=
0
;
end
...
...
@@ -120,8 +120,6 @@ state_variance_rank = size(StateVectorVarianceSquareRoot,2);
%
Factorize
the
covariance
matrix
of
the
structural
innovations
Q_lower_triangular_cholesky
=
chol
(
Q
)
'
;
[
PredictedStateMean
,
PredictedStateVarianceSquareRoot
,
StateVectorMean
,
StateVectorVarianceSquareRoot
]
=
...
gaussian_filter_bank
(
ReducedForm
,
Y
(
:
,
1
),
StateVectorMean
,
StateVectorVarianceSquareRoot
,
Q_lower_triangular_cholesky
,
Q_lower_triangular_cholesky
,
H
,
DynareOptions
)
;
StateVectors
=
bsxfun
(
@plus
,
StateVectorVarianceSquareRoot
*
randn
(
state_variance_rank
,
number_of_particles
),
StateVectorMean
)
;
%
Set
seed
for
randn
().
...
...
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