From 343655d9d3d43ffe20aef5059cc0e3d1552aff7e Mon Sep 17 00:00:00 2001 From: David Boles Date: Sat, 7 Dec 2019 22:08:55 -0500 Subject: [PATCH] Added missing constant, clarified docs in student_particle_filter.py --- student_particle_filter.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/student_particle_filter.py b/student_particle_filter.py index 6e27773..086e518 100644 --- a/student_particle_filter.py +++ b/student_particle_filter.py @@ -4,17 +4,19 @@ NUM_PARTICLES = 100 UPDATE_VARIANCE = 0.1 +PROB_THRESHOLD = 0.001 TARGET = class Particle: """ - Class to hold a particle in your filter. Should store its position (x,y) - and its weight. Note that the weight field must - be called "weight." Once optimized in problem 6, it should store the set of - all weights and poses as numpy arrays. Depending on how you implement the - optimization, it may also need fields or methods for retrieving the particle's - own weight and pose. + Class to hold a particle in your filter. Should store its position [x, y] + and its weight. Note that the position field must be called "pose" and the + weight field must be called "weight". You may assign to each particle the + weight PROB_THRESHOLD. Once optimized in problem 6, ParticleSet will store + the set of all weights and poses as numpy arrays. Depending on how you + implement the optimization, it may also need fields or methods for + retrieving the particle's own weight and pose. """ def __init__(self, x, y):