https://github.com/baggepinnen/particleplot.jl
https://github.com/baggepinnen/particleplot.jl
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/baggepinnen/particleplot.jl
- Owner: baggepinnen
- License: other
- Created: 2016-08-11T19:31:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-13T07:44:28.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T04:13:26.487Z (9 months ago)
- Language: Julia
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ParticlePlot
[](https://travis-ci.org/baggepinnen/ParticlePlot.jl)
[](https://coveralls.io/github/baggepinnen/ParticlePlot.jl?branch=master)
[](http://codecov.io/github/baggepinnen/ParticlePlot.jl?branch=master)
`pplot(x, w, y, yhat, N, a, t, xreal, xhat, xOld, pdata)`
To be called inside a particle filter, plots either particle density (`density=true`) or individual particles (`density=false`)
Will plot all the real states in `xIndices` as well as the expected vs real measurements of `yIndices`.
Arguments:
* `x`: `Array(M,N)`. The states for each particle where `M` number of states, `N` number of Particles
* `w`: `Array(N)`. weight of each particle
* `y`: `Array(R,T)`. All true outputs. `R` is number of outputs, `T` is total number of time steps (will only use index `t`)
* `yhat`: `Array(R,N)` The expected output per particle. `R` is number of outputs, `N` number of Particles
* `N`, Number of particles
* `a`, `Array(N)`, reordering of particles (e.g. `1:N`)
* `t`, Current time step
* `xreal`: `Array(M,T)`. All true states. `R` is number of states, `T` is total number of time steps (will only use index `t`)
* `xhat`: Not used
* `xOld`: Same as `x`, but for previous time step, only used when `!density` to show states origins
* `pdata`: Persistant data for plotting. Set to void in first call and pdataOut on remaining
* `density = true` To only plot the particle trajectories, set (`leftOnly=false`)
* `leftOnly = false`\n
* `xIndices = 1:size(x,1)`
* `yIndices = 1:size(y,1)`
Returns: `pdataOut`