Template Struct CProbabilityParticle

Struct Documentation

template<class T, particle_storage_mode STORAGE>
struct CProbabilityParticle

A template class for holding a the data and the weight of a particle. Particles comprise two parts: a “data payload field”, and a logarithmic importance sampling weight.

Template Parameters:
  • T – The type of the payload. Must be default constructable.

  • STORAGE – If POINTER, a (wrapper to a) pointer is used to store the payload; if VALUE, the payload is stored directly as a value.