template struct mrpt::bayes::CProbabilityParticle<T, particle_storage_mode::POINTER>

#include <mrpt/bayes/CProbabilityParticle.h>

template <class T>
struct CProbabilityParticle<T, particle_storage_mode::POINTER>: public mrpt::bayes::CProbabilityParticleBase
{
    //
fields

    mrpt::containers::copy_ptr<T> d {};
    double log_w {.0};
};

Fields

mrpt::containers::copy_ptr<T> d {}

The data associated with this particle.

The use of copy_ptr<> allows relying on compiler-generated copy ctor, etc.

double log_w {.0}

The (logarithmic) weight value for this particle.