00001 #pragma ident "$Id$" 00002 00008 #ifndef GPSTK_FILTERBASE_HPP 00009 #define GPSTK_FILTERBASE_HPP 00010 00011 //============================================================================ 00012 // 00013 // This file is part of GPSTk, the GPS Toolkit. 00014 // 00015 // The GPSTk is free software; you can redistribute it and/or modify 00016 // it under the terms of the GNU Lesser General Public License as published 00017 // by the Free Software Foundation; either version 2.1 of the License, or 00018 // any later version. 00019 // 00020 // The GPSTk is distributed in the hope that it will be useful, 00021 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00023 // GNU Lesser General Public License for more details. 00024 // 00025 // You should have received a copy of the GNU Lesser General Public 00026 // License along with GPSTk; if not, write to the Free Software Foundation, 00027 // Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00028 // 00029 // Dagoberto Salazar - gAGE ( http://www.gage.es ). 2011 00030 // 00031 //============================================================================ 00032 00033 00034 00035 #include "Exception.hpp" 00036 #include "Matrix.hpp" 00037 #include "Vector.hpp" 00038 00039 00040 namespace gpstk 00041 { 00042 00044 00045 00046 00050 class FilterBase 00051 { 00052 public: 00053 00054 00056 FilterBase() : valid(false) {}; 00057 00058 00063 virtual double Compute( double input ) = 0; 00064 00065 00067 virtual void Reset(void) = 0; 00068 00069 00071 bool isValid(void) 00072 { return valid; } 00073 00074 00076 virtual ~FilterBase() {}; 00077 00078 00079 protected: 00080 00081 00082 bool valid; // true only if results are valid 00083 00084 00085 }; // End of class 'FilterBase' 00086 00088 00089 } // End of namespace gpstk 00090 00091 #endif // GPSTK_FILTERBASE_HPP
1.3.9.1