Bayes Filters Library
GaussianPrediction.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016-2019 Istituto Italiano di Tecnologia (IIT)
3  *
4  * This software may be modified and distributed under the terms of the
5  * BSD 3-Clause license. See the accompanying LICENSE file for details.
6  */
7 
8 #ifndef GAUSSIANPREDICTION_H
9 #define GAUSSIANPREDICTION_H
10 
13 #include <BayesFilters/Skippable.h>
15 
16 #include <Eigen/Dense>
17 
18 namespace bfl {
19  class GaussianPrediction;
20 }
21 
22 
24 {
25 public:
26  virtual ~GaussianPrediction() noexcept = default;
27 
28  void predict(const GaussianMixture& prev_state, GaussianMixture& pred_state) override;
29 
30  bool skip(const std::string& what_step, const bool status) override;
31 
32  bool is_skipping() override;
33 
34  virtual StateModel& getStateModel() noexcept = 0;
35 
36 
37 protected:
38  GaussianPrediction() noexcept = default;
39 
40  GaussianPrediction(const GaussianPrediction& prediction) noexcept = delete;
41 
42  GaussianPrediction& operator=(const GaussianPrediction& prediction) noexcept = delete;
43 
44  GaussianPrediction(GaussianPrediction&& prediction) noexcept = default;
45 
46  GaussianPrediction& operator=(GaussianPrediction&& prediction) noexcept = default;
47 
48  virtual void predictStep(const GaussianMixture& prev_state, GaussianMixture& pred_state) = 0;
49 
50 
51 private:
52  bool skip_ = false;
53 };
54 
55 #endif /* GAUSSIANPREDICTION_H */
StateModel.h
bfl::GaussianPrediction::skip
bool skip(const std::string &what_step, const bool status) override
Definition: GaussianPrediction.cpp:27
bfl::GaussianPrediction::getStateModel
virtual StateModel & getStateModel() noexcept=0
GaussianMixturePrediction.h
bfl
Port of boost::any for C++11 compilers.
Definition: AdditiveMeasurementModel.h:13
bfl::GaussianPrediction::is_skipping
bool is_skipping() override
Definition: GaussianPrediction.cpp:56
bfl::GaussianPrediction::GaussianPrediction
GaussianPrediction() noexcept=default
bfl::GaussianPrediction::operator=
GaussianPrediction & operator=(const GaussianPrediction &prediction) noexcept=delete
Skippable.h
bfl::GaussianPrediction::predictStep
virtual void predictStep(const GaussianMixture &prev_state, GaussianMixture &pred_state)=0
bfl::GaussianPrediction::~GaussianPrediction
virtual ~GaussianPrediction() noexcept=default
bfl::GaussianPrediction
Definition: GaussianPrediction.h:23
bfl::GaussianPrediction::predict
void predict(const GaussianMixture &prev_state, GaussianMixture &pred_state) override
Definition: GaussianPrediction.cpp:18
bfl::GaussianPrediction::skip_
bool skip_
Definition: GaussianPrediction.h:52
bfl::StateModel
Definition: StateModel.h:22
ExogenousModel.h
bfl::GaussianMixturePrediction
Definition: GaussianMixturePrediction.h:20
bfl::GaussianMixture
Definition: GaussianMixture.h:20
bfl::Skippable
Definition: Skippable.h:18