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
3b471e3a
Commit
3b471e3a
authored
Mar 03, 2012
by
Stéphane Adjemian
Browse files
Bug fix. Added missing input (method specification) to the resampling routine.
parent
6b736cf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/particle/sequential_importance_particle_filter.m
View file @
3b471e3a
...
...
@@ -134,7 +134,7 @@ for t=1:sample_size
Neff
=
1
/
(
weights
*
weights
'
);
if
(
Neff
<
.
5
*
sample_size
&&
~
isempty
(
strmatch
(
DynareOptions
.
particle
.
resampling
,
'
generic
','
exact
'
)))
||
~
isempty
(
strmatch
(
DynareOptions
.
particle
.
resampling
,
'
systematic
','
exact
'
))
nb_obs_resamp
=
nb_obs_resamp
+
1
;
StateVectors
=
tmp
(
mf0
,
resample
(
weights
));
StateVectors
=
tmp
(
mf0
,
resample
(
weights
,
DynareOptions
.
particle
.
resampling_method
));
weights
=
ones
(
1
,
number_of_particles
)
;
elseif
~
isempty
(
strmatch
(
DynareOptions
.
particle_filter
.
resampling
,
'
none
','
exact
'
))
StateVectors
=
tmp
(
mf0
,
:
);
...
...
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