Estimator that can be used to estimate discrete states. The update is applied according to Bayes. No propagation has been included in this class, but the propagate method can simply be overloaded in a specialized class. More...
#include <DiscreteFilter.h>
Public Member Functions | |
virtual DiscreteFilter * | clone () const |
DiscreteFilter () | |
DiscreteFilter (const DiscreteFilter &orig) | |
virtual const pbl::PDF & | getValue () const |
Returns the current estimated state value. | |
virtual void | propagate (const mhf::Time &time) |
Propagates the internal state to Time time. | |
virtual void | reset () |
Resets the internal state of the estimator to its initial value. | |
virtual void | update (const pbl::PDF &z, const mhf::Time &time) |
Updates the internal state based on measurement z. | |
virtual | ~DiscreteFilter () |
Static Public Attributes | |
static int | N_DISCRETEKALMAN_FILTER = 0 |
Protected Attributes | |
pbl::PMF | pmf_ |
Estimator that can be used to estimate discrete states. The update is applied according to Bayes. No propagation has been included in this class, but the propagate method can simply be overloaded in a specialized class.
Definition at line 50 of file DiscreteFilter.h.
Definition at line 41 of file DiscreteFilter.cpp.
DiscreteFilter::DiscreteFilter | ( | const DiscreteFilter & | orig | ) |
Definition at line 45 of file DiscreteFilter.cpp.
DiscreteFilter::~DiscreteFilter | ( | ) | [virtual] |
Definition at line 49 of file DiscreteFilter.cpp.
DiscreteFilter * DiscreteFilter::clone | ( | ) | const [virtual] |
Implements mhf::IStateEstimator.
Definition at line 53 of file DiscreteFilter.cpp.
const pbl::PDF & DiscreteFilter::getValue | ( | ) | const [virtual] |
Returns the current estimated state value.
Implements mhf::IStateEstimator.
Definition at line 70 of file DiscreteFilter.cpp.
void DiscreteFilter::propagate | ( | const mhf::Time & | time | ) | [virtual] |
Propagates the internal state to Time time.
time | The time to which the internal state is propagated |
Implements mhf::IStateEstimator.
Definition at line 57 of file DiscreteFilter.cpp.
void DiscreteFilter::reset | ( | ) | [virtual] |
Resets the internal state of the estimator to its initial value.
Implements mhf::IStateEstimator.
Definition at line 66 of file DiscreteFilter.cpp.
void DiscreteFilter::update | ( | const pbl::PDF & | z, |
const mhf::Time & | time | ||
) | [virtual] |
Updates the internal state based on measurement z.
z | The measurement with which to update. z should be a discrete distribution (PMF) |
time | The time to which the internal state is propagated before updating |
Implements mhf::IStateEstimator.
Definition at line 60 of file DiscreteFilter.cpp.
int DiscreteFilter::N_DISCRETEKALMAN_FILTER = 0 [static] |
Definition at line 54 of file DiscreteFilter.h.
pbl::PMF DiscreteFilter::pmf_ [protected] |
Definition at line 90 of file DiscreteFilter.h.