This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Indoor/smc/merging/estimation/JointEstimationPosteriorOnly.h
2017-11-15 17:46:06 +01:00

29 lines
752 B
C++

#ifndef JOINTESTIMATIONPOSTERIORONLY_H
#define JOINTESTIMATIONPOSTERIORONLY_H
#include "JointEstimation.h"
#include "../../filtering/ParticleFilterMixing.h"
namespace SMC {
/**
* Use only the posterior distribution (first mode entry) for the joint estimaton
*/
template <typename State, typename Control, typename Observation>
class JointEstimationPosteriorOnly
: public JointEstimation<State, Control, Observation> {
public:
// get the current state estimation for the given particle set
const State estimate(std::vector<ParticleFilterMixing<State, Control, Observation>>& modes) override {
return modes[0].getEstimation();
}
};
}
#endif // JOINTESTIMATIONPOSTERIORONLY_H