| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
ParticleFilter< ParticleT >::ResamplingPolicy Class Reference#include <ParticleFilter.h>
Inheritance diagram for ParticleFilter< ParticleT >::ResamplingPolicy: ![]() Detailed Descriptiontemplate<typename ParticleT>
The resampling policy focuses the particle filter on those particles which are performing well, and dropping those which are poorly rated.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Types | |
| typedef ParticleT | particle_type |
| redefinition here allows reference to the particle type even if the template parameter may be abstracted away due to a typedef | |
| typedef std::vector< particle_type > | particle_collection |
| the collection type we'll be using to store the particles | |
| typedef particle_collection::size_type | index_t |
| index type for refering to particles within the collection | |
Public Member Functions | |
| ResamplingPolicy () | |
| constructor, creates a DistributionPolicy based on the particle_type's own DistributionPolicy typedef | |
| ResamplingPolicy (DistributionPolicy *distPolicy) | |
| constructor, pass your own custom distribution policy (responsibility for deallocation is assumed by the ResamplingPolicy) | |
| virtual | ~ResamplingPolicy () |
| destructor | |
| virtual void | resample (particle_collection &particles, index_t &bestIndex)=0 |
| the particle filter will call resample() when the particles have been evaluated and are ready to be selected | |
| virtual void | setDistributionPolicy (DistributionPolicy *distPolicy) |
| replaces dist with a new distribution policy. If you pass NULL, dist will be reset to the particle_type's default distribution policy, as specified by a 'DistributionPolicy' typedef within the particle class | |
| virtual DistributionPolicy & | getDistributionPolicy () const |
| returns the currently active distribution policy (dist) | |
Protected Attributes | |
| DistributionPolicy * | dist |
| a pointer to the current distribution policy, which cannot be NULL | |
Private Member Functions | |
| ResamplingPolicy (const ResamplingPolicy &rp) | |
| copy unsupported | |
| ResamplingPolicy & | operator= (const ResamplingPolicy &rp) |
| assignment unsupported | |
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:31 2007 by Doxygen 1.4.7 |