EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
Loading...
Searching...
No Matches
Emrys::ParticleHistory< Space_, Scalar_, Allocator_ >::Step Class Reference

One recorded set of particles, its descent from the step before, and its smoothed set, built from the history's allocator. More...

#include <EmrysFilter/Smoothers/ParticleHistory.h>

Public Types

using allocator_type = Allocator_
 the allocator its sets and indices come from

Public Member Functions

 Step (ParticleSetType const &recorded, Allocator_ const &allocator={})
 A copy of recorded in storage from allocator, with the recorded particles as the smoothed ones until smooth() runs, and room for a parent per particle.
 Step (Step const &other, Allocator_ const &allocator)
 Copies other into storage from allocator.
 Step (Step &&other, Allocator_ const &allocator)
 Moves other into storage from allocator, taking its storage when the allocators are equal.
 Step (Step const &)=default
 copies the sets and the parents
 Step (Step &&)=default
 moves the sets and the parents
Step & operator= (Step const &)=default
 Copies into this step's storage.
Step & operator= (Step &&)=default
 Takes the other step's storage, as the members' do.

Public Attributes

ParticleSetType particles
 The particles as push() recorded them, before the step's prediction.
ParticleSetType smoothed
 \( p(x_k \mid z_{1:N}) \) for the step's \( x_k \), as of the last smooth(): the traced states with the latest weights; a copy of particles until then
IndexBuffer parents
 If resampled, particle i here descends from particle parents[i] of the step before; otherwise from particle i, and parents is unused.
bool resampled = false
 whether a resample fell between the step before and this one

Detailed Description

template<Space Space_, RealScalar Scalar_ = double, typename Allocator_ = DefaultAllocator>
class Emrys::ParticleHistory< Space_, Scalar_, Allocator_ >::Step

One recorded set of particles, its descent from the step before, and its smoothed set, built from the history's allocator.


The documentation for this class was generated from the following file: