Skip to content

Commit edbc98c

Browse files
authored
Merge pull request rlabbe#243 from liorgolgher/patch-1
Update 12-Particle-Filters.ipynb
2 parents 183b5b6 + 345a82d commit edbc98c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

12-Particle-Filters.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@
12771277
"source": [
12781278
"## Resampling Methods\n",
12791279
"\n",
1280-
"The resampling algorithm effects the performance of the filter. For example, suppose we resampled particles by picking particles at random. This would lead us to choosing many particles with a very low weight, and the resulting set of particles would be a terrible representation of the problem's probability distribution. \n",
1280+
"The resampling algorithm affects the performance of the filter. For example, suppose we resampled particles by picking particles at random. This would lead us to choosing many particles with a very low weight, and the resulting set of particles would be a terrible representation of the problem's probability distribution. \n",
12811281
"\n",
12821282
"Research on the topic continues, but a handful of algorithms work well in practice across a wide variety of situations. We desire an algorithm that has several properties. It should preferentially select particles that have a higher probability. It should select a representative population of the higher probability particles to avoid sample impoverishment. It should include enough lower probability particles to give the filter a chance of detecting strongly nonlinear behavior. \n",
12831283
"\n",
@@ -1340,9 +1340,9 @@
13401340
"cell_type": "markdown",
13411341
"metadata": {},
13421342
"source": [
1343-
"To select a weight we generate a random number uniformly selected between 0 and 1 and use binary search to find its position inside the cumulative sum array. Large weights occupy more space than low weights, so they will be more likely to be selected. \n",
1343+
"To select a weight we generate a random number uniformly selected between 0 and 1 and use binary search to find its position inside the cumulative sum array. Large weights occupy more space than low weights, so they are more likely to be selected. \n",
13441344
"\n",
1345-
"This is very easy to code using NumPy's [ufunc](http://docs.scipy.org/doc/numpy/reference/ufuncs.html) support. Ufuncs apply functions to every element of an array, returning an array of the results. `searchsorted` is NumPy's binary search algorithm. If you provide is with an array of search values it will return an array of answers; one answer for each search value. "
1345+
"This is very easy to code using NumPy's [ufunc](http://docs.scipy.org/doc/numpy/reference/ufuncs.html) support. Ufuncs apply functions to every element of an array, returning an array of the results. `searchsorted` is NumPy's binary search algorithm. If you provide it with an array of search values it will return an array of answers: a single answer for each search value. "
13461346
]
13471347
},
13481348
{

0 commit comments

Comments
 (0)