-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
before swapping postprocess arg order
- Loading branch information
Showing
7 changed files
with
44 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,19 @@ | ||
# Basic Particle Filter | ||
|
||
The | ||
The [`BasicParticleFilter`](@ref) type is a flexible structure for building a particle filter. It simply contains functions that carry out each of the steps of a particle filter belief update. | ||
|
||
## Update Steps | ||
The basic particle filtering step in ParticleFilters.jl is implemented in the [`update`](@ref) function, and consists of four steps: | ||
|
||
The basic particle filtering step in ParticleFilters.jl is implemented in the [`update`](@ref) function, and consists of three steps: | ||
|
||
1. Prediction (or propagation) - each state particle is simulated forward one step in time | ||
2. Reweighting - an explicit measurement (observation) model is used to calculate a new weight | ||
3. Resampling - a new collection of state particles is generated with particle frequencies proportional to the new weights | ||
|
||
This is an example of [sequential importance resampling](https://en.wikipedia.org/wiki/Particle_filter#Sequential_Importance_Resampling_(SIR)) using the state transition distribution as the proposal distribution, and the [`BootstrapFilter`](@ref) constructor can be used to construct such a filter with a `model` that controls the prediction and reweighting steps, and a number of particles to create in the resampling phase. | ||
|
||
A more flexible structure for building a particle filter is the [`BasicParticleFilter`](@ref). It contains three models, one for each step: | ||
|
||
1. The `predict_model` controls prediction through [`predict!`](@ref) | ||
2. The `reweight_model` controls reweighting through [`reweight!`](@ref) | ||
3. The `resampler` controls resampling through [`resample`](@ref) | ||
1. Preprocessing | ||
2. Prediction (or propagation) - each state particle is simulated forward one step in time | ||
3. Reweighting - an explicit measurement (observation) model is used to calculate a new weight | ||
4. Postprocessing | ||
|
||
!!! note | ||
In the future | ||
|
||
## Docstrings | ||
|
||
```@docs | ||
BasicParticleFilter | ||
update | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters