baggepinnen / LowLevelParticleFilters.jl

State estimation, smoothing and parameter estimation using Kalman and particle filters.
https://baggepinnen.github.io/LowLevelParticleFilters.jl/stable
Other
117 stars 15 forks source link

remove the unused argument `df` #137

Open baggepinnen opened 5 months ago

baggepinnen commented 5 months ago

df for APF is only used in smoothing, where it is used in the call

 logpdf(df, xb[m,t+1], f(xf[n,t],u[t],p,t), t)

to the custom method

@inline Distributions.logpdf(d::Distribution,x,xp,t) = logpdf(d,x-xp)

This PR thus has to

  1. Not remove the argument from the docs completely
  2. Require that a custom distribution or a custom logpdf function is supplied instead
  3. Update the beetle tutorial to show how this is done