FIRDifferentiator5thOrder Class Reference
[Mathematical algorithmsGPS solution algorithms and Tropospheric]

#include <FIRDifferentiator5thOrder.hpp>

Inheritance diagram for FIRDifferentiator5thOrder:

Inheritance graph
[legend]
Collaboration diagram for FIRDifferentiator5thOrder:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class implements a Finite Impulsive Response (FIR) Differentiator filter of 5th order designed according to central difference approximation.

Further information about this filter and its use in GNSS may be found at:

Kennedy, S. L. (2002) Acceleration Estimation from GPS Carrier Phases for Airborne Gravimetry. Master’s thesis, University of Calgary. URL http://www.geomatics.ucalgary.ca/

This filter shows constant, linear phase response over the passband. It is very important to note that the CURRENT derivative corresponds to FIVE EPOCHS BEFORE.

A typical way to use this class follows:

      // Set up function parameters
   const double Tf(15.0);         // Function period
   const double omega( TWO_PI/Tf );

      // Set filter parameters
   const double Ts(0.1);          // Sampling period

      // Declare and configure an FIRDifferentiator5thOrder object
   FIRDifferentiator5thOrder firDiff( Ts );

      // Let's iterate and print function values and derivatives
   for(int i = 0; i < 200; ++i)
   {
      double t( static_cast<double>(i*Ts) );

      double y( sin(omega*t) );            // Function is sine
      double dy( omega*cos(omega*t) );     // Sine derivative

      double dy2( firDiff.Compute(y) );

         // Print results
      cout << t    << "  "
           << y    << "  "
           << dy   << "  "
           << dy2  << endl;
   }

Definition at line 99 of file FIRDifferentiator5thOrder.hpp.

Public Member Functions

 FIRDifferentiator5thOrder ()
 Default constructor.
 FIRDifferentiator5thOrder (double period)
 Common constructor.
virtual double Compute (double input)
 Return result.
virtual void Reset (void)
 Resets filter, cleaning its internal state.
virtual double getT (void) const
 Get the sampling period, in seconds.
virtual FIRDifferentiator5thOrdersetT (double period)
 Set the sampling period, in seconds.
virtual ~FIRDifferentiator5thOrder ()
 Destructor.


Constructor & Destructor Documentation

FIRDifferentiator5thOrder  )  [inline]
 

Default constructor.

Definition at line 105 of file FIRDifferentiator5thOrder.hpp.

FIRDifferentiator5thOrder double  period  )  [inline]
 

Common constructor.

Parameters:
[in] period Sampling period, in seconds.

Definition at line 114 of file FIRDifferentiator5thOrder.hpp.

virtual ~FIRDifferentiator5thOrder  )  [inline, virtual]
 

Destructor.

Definition at line 147 of file FIRDifferentiator5thOrder.hpp.


Member Function Documentation

double Compute double  input  )  [virtual]
 

Return result.

Parameters:
input Input data.

Implements FilterBase.

Definition at line 43 of file FIRDifferentiator5thOrder.cpp.

virtual double getT void   )  const [inline, virtual]
 

Get the sampling period, in seconds.

Definition at line 130 of file FIRDifferentiator5thOrder.hpp.

void Reset void   )  [virtual]
 

Resets filter, cleaning its internal state.

Implements FilterBase.

Definition at line 84 of file FIRDifferentiator5thOrder.cpp.

Referenced by FIRDifferentiator5thOrder::setT().

FIRDifferentiator5thOrder & setT double  period  )  [virtual]
 

Set the sampling period, in seconds.

Parameters:
[in] period Sampling period, in seconds.
Warning:
Only values higher that zero are allowed. Other values will be ignored.

This operation resets the filter.

Definition at line 108 of file FIRDifferentiator5thOrder.cpp.

References FIRDifferentiator5thOrder::Reset().


The documentation for this class was generated from the following files:
Generated on Wed Jun 19 03:31:46 2013 for GPS ToolKit Software Library by  doxygen 1.3.9.1