FIRDifferentiator5thOrder.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id$"
00002 
00008 #ifndef GPSTK_FIRDIFFERENTIATOR5THORDER_HPP
00009 #define GPSTK_FIRDIFFERENTIATOR5THORDER_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 <cmath>
00036 #include <deque>
00037 
00038 //#include "FIRDifferentiator1stOrder.hpp"
00039 #include "FilterBase.hpp"
00040 
00041 
00042 
00043 namespace gpstk
00044 {
00045 
00047 
00048 
00050 
00051 
00100    class FIRDifferentiator5thOrder : public FilterBase
00101    {
00102    public:
00103 
00104 
00106       FIRDifferentiator5thOrder()
00107          : T(1.0)
00108       { Init(); };
00109 
00110 
00115       FIRDifferentiator5thOrder( double period )
00116       { setT(period); Init(); };
00117 
00118 
00123       virtual double Compute( double input );
00124 
00125 
00127       virtual void Reset(void);
00128 
00129 
00131       virtual double getT( void ) const
00132       { return T; };
00133 
00134 
00144       virtual FIRDifferentiator5thOrder& setT( double period );
00145 
00146 
00148       virtual ~FIRDifferentiator5thOrder() {};
00149 
00150 
00151    private:
00152 
00153 
00155       double T;
00156 
00157 
00159       std::deque<double> X;
00160 
00161 
00163       double k1;
00164       double k2;
00165       double k3;
00166       double k4;
00167       double k5;
00168 
00170       void Init( void );
00171 
00172 
00173    }; // End of class 'FIRDifferentiator5thOrder'
00174 
00175 
00177 
00178 }  // End of namespace gpstk
00179 
00180 #endif   // GPSTK_FIRDIFFERENTIATOR5THORDER_HPP

Generated on Tue May 22 03:30:58 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1