#39 #40 git add for last commit

This commit is contained in:
toni
2017-11-15 17:46:06 +01:00
parent c8063bc862
commit 95a5c8f34f
49 changed files with 4661 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#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