00001 #ifndef INDII_ML_FILTER_SMOOTHER_HPP
00002 #define INDII_ML_FILTER_SMOOTHER_HPP
00003
00004 #include "../aux/GaussianPdf.hpp"
00005
00006 namespace indii {
00007 namespace ml {
00008 namespace filter {
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 template <class T = unsigned int, class P = indii::ml::aux::GaussianPdf>
00024 class Smoother {
00025 public:
00026
00027
00028
00029
00030
00031
00032
00033 Smoother(const T tT, const P& p_xT);
00034
00035
00036
00037
00038 virtual ~Smoother();
00039
00040
00041
00042
00043
00044
00045 T getTime() const;
00046
00047
00048
00049
00050
00051
00052 void setTime(const T tn);
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062 P& getSmoothedState();
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072 void setSmoothedState(const P& p_xtn_ytT);
00073
00074
00075
00076
00077
00078
00079
00080 virtual P smoothedMeasure() = 0;
00081
00082 protected:
00083
00084
00085
00086 T tn;
00087
00088
00089
00090
00091
00092 P p_xtn_ytT;
00093
00094 };
00095
00096 }
00097 }
00098 }
00099
00100 template <class T, class P>
00101 indii::ml::filter::Smoother<T,P>::Smoother(const T tT, const P& p_xT) :
00102 tn(tT), p_xtn_ytT(p_xT) {
00103
00104 }
00105
00106 template <class T, class P>
00107 indii::ml::filter::Smoother<T,P>::~Smoother() {
00108
00109 }
00110
00111 template <class T, class P>
00112 inline T indii::ml::filter::Smoother<T,P>::getTime() const {
00113 return this->tn;
00114 }
00115
00116 template <class T, class P>
00117 void indii::ml::filter::Smoother<T,P>::setTime(const T tn) {
00118 this->tn = tn;
00119 }
00120
00121 template <class T, class P>
00122 inline P& indii::ml::filter::Smoother<T,P>::getSmoothedState() {
00123 return this->p_xtn_ytT;
00124 }
00125
00126 template <class T, class P>
00127 void indii::ml::filter::Smoother<T,P>::setSmoothedState(
00128 const P& p_xtn_ytT) {
00129 this->p_xtn_ytT = p_xtn_ytT;
00130 }
00131
00132 #endif
00133