Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix documentation runfilter #65

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/runfilter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ This function is intended for post-processing pre-recorded data with a particle
# Return value
A sequence of particle collections. This will not include `b0` and will be the same length as `us` and `ys`. Each particle collection in this sequence is the one after being updated with the corresponding measurement in `ys`.
"""
function runfilter(f::Updater, b0, us::AbstractVector, ys::AbstractVector)
b = initialize_belief(f, b0)
function runfilter(fil::Updater, b0, us::AbstractVector, ys::AbstractVector)
b = initialize_belief(fil, b0)
bs = Any[]
@assert length(ys) >= length(us)
for i in 1:length(us)
b = update(f, b, us[i], ys[i])
b = update(fil, b, us[i], ys[i])
push!(bs, b)
end
return bs
Expand Down