Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonathan Hadida
pfilt
Commits
c6abfe31
Commit
c6abfe31
authored
May 17, 2016
by
Jonathan Hadida
Browse files
More output
parent
9255d1c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
particle_filter.m
View file @
c6abfe31
...
...
@@ -68,7 +68,7 @@ function [best_particles,best_scores] = particle_filter( objective_fun, range, v
assert
(
opt
.
BestK
>
0
,
'BestK should be non-zero.'
);
% initialise the particles
fprintf
(
'Particle filter starting with %d particles and %d cycles\n'
,
Nparticles
,
Ncycles
);
fprintf
(
'Particle filter starting with %d particles and %d cycles
:
\n'
,
Nparticles
,
Ncycles
);
fprintf
(
'\t- Initialisation\n'
);
particles
=
uniform_sampling
(
range
,
Nparticles
);
...
...
@@ -83,7 +83,7 @@ function [best_particles,best_scores] = particle_filter( objective_fun, range, v
for
c
=
1
:
Ncycles
fprintf
(
'\t-
Starting cycle #%d\n'
,
c
);
fprintf
(
'\t-
Cycle #%d / %d (started @%s)...\n'
,
c
,
Ncycles
,
datestr
(
now
,
'dd-mmm-yy HH:MM:SS'
)
);
% resample
particles
=
horzcat
(
...
...
...
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