From 118c14ed88ed76b892071638156dcb10cc69fd42 Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Fri, 31 Mar 2017 15:48:37 -0500 Subject: Add Filter class. This is not tested to be working yet. --- src/filter.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/filter.h (limited to 'src/filter.h') diff --git a/src/filter.h b/src/filter.h new file mode 100644 index 0000000..fdd7777 --- /dev/null +++ b/src/filter.h @@ -0,0 +1,50 @@ +#ifndef filter_INC +#define filter_INC + +#include +#include +#include + +using Eigen::Dynamic; +using Eigen::Matrix; +using Eigen::MatrixXd; +using Eigen::VectorXd; +using Eigen::Vector3d; +using std::list; + +/* + * ===================================================================================== + * Class: Filter + * Description: + * ===================================================================================== + */ +class Filter +{ + public: + /* ==================== LIFECYCLE ======================================= */ + Filter (const VectorXd &b, const VectorXd &a); /* constructor */ + + /* ==================== ACCESSORS ======================================= */ + MatrixXd listToMatrix(); + + /* ==================== MUTATORS ======================================= */ + + /* ==================== OPERATORS ======================================= */ + Vector3d update( const Vector3d &x); + + protected: + /* ==================== METHODS ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + + private: + /* ==================== METHODS ======================================= */ + + /* ==================== DATA MEMBERS ======================================= */ + Matrix y; + Matrix F; + list X,Y; + +}; /* ----- end of class Filter ----- */ + +#endif /* ----- #ifndef filter_INC ----- */ -- cgit v1.1