#include <SimpleFilter.hpp>
Inheritance diagram for SimpleFilter:


This class is meant to be used with the GNSS data structures objects found in "DataStructures" class.
A typical way to use this class follows:
RinexObsStream rin("ebre0300.02o"); gnssRinex gRin; SimpleFilter myFilter; while(rin >> gRin) { gRin >> myFilter; }
The "SimpleFilter" object will visit every satellite in the GNSS data structure that is "gRin" and will check that the given code observations are within some (preassigned) boundaries.
By default, the algorithm will check C1 observables, the minimum limit is 15000000.0 meters and the maximum limit is 30000000.0 meters. You may change all these settings with the appropriate set methods.
Also, you may set more than one observable to be checked by passing a "TypeIDSet" object to the appropriate constructors or methods. For instance:
TypeIDSet typeSet; typeSet.insert(TypeID::P1); typeSet.insert(TypeID::P2); myFilter.setFilteredType(typeSet);
Be warned that if a given satellite does not have the observations required, or if their are out of bounds, the full satellite record will be summarily deleted from the data structure.
Definition at line 90 of file SimpleFilter.hpp.
Public Member Functions | |
| SimpleFilter () | |
| Default constructor. By default, filter C1. | |
| SimpleFilter (const TypeID &type, const double &min, const double &max) | |
| Explicit constructor. | |
| SimpleFilter (const TypeID &type) | |
| Explicit constructor. | |
| SimpleFilter (const TypeIDSet &typeSet, const double &min, const double &max) | |
| Explicit constructor. | |
| SimpleFilter (const TypeIDSet &typeSet) | |
| Explicit constructor. | |
| virtual satTypeValueMap & | Process (satTypeValueMap &gData) throw (ProcessingException) |
| Returns a satTypeValueMap object, filtering the target observables. | |
| virtual SimpleFilter & | setMinLimit (const double &min) |
| Method to set the minimum limit. | |
| virtual double | getMinLimit () const |
| Method to get the minimum limit. | |
| virtual SimpleFilter & | setMaxLimit (const double &max) |
| Method to set the maximum limit. | |
| virtual double | getMaxLimit () const |
| Method to get the maximum limit. | |
| virtual SimpleFilter & | addFilteredType (const TypeID &type) |
| Method to add a TypeID to be filtered. | |
| virtual SimpleFilter & | setFilteredType (const TypeID &type) |
| Method to set a TypeID to be filtered. | |
| virtual SimpleFilter & | setFilteredType (const TypeIDSet &typeSet) |
| Method to set the TypeID's to be filtered. | |
| virtual TypeIDSet | getFilteredType () const |
| Method to get the set of TypeID's to be filtered. | |
| virtual gnssSatTypeValue & | Process (gnssSatTypeValue &gData) throw (ProcessingException) |
| Returns a gnnsSatTypeValue object, filtering the target observables. | |
| virtual gnssRinex & | Process (gnssRinex &gData) throw (ProcessingException) |
| Returns a gnnsRinex object, filtering the target observables. | |
| virtual int | getIndex (void) const |
| Returns an index identifying this object. | |
| virtual std::string | getClassName (void) const |
| Returns a string identifying this object. | |
| virtual | ~SimpleFilter () |
| Destructor. | |
Protected Member Functions | |
| virtual bool | checkValue (const double &value) const |
| Checks that the value is within the given limits. | |
Protected Attributes | |
| TypeIDSet | filterTypeSet |
| Set of types to be filtered. | |
| double | minLimit |
| Minimum value allowed for input data (in meters). | |
| double | maxLimit |
| Maximum value allowed for input data (in meters). | |
|
|
Default constructor. By default, filter C1.
Definition at line 95 of file SimpleFilter.hpp. |
|
||||||||||||||||
|
Explicit constructor.
Definition at line 105 of file SimpleFilter.hpp. References gpstk::max(), and gpstk::min(). |
|
|
Explicit constructor.
Definition at line 116 of file SimpleFilter.hpp. |
|
||||||||||||||||
|
Explicit constructor.
Definition at line 127 of file SimpleFilter.hpp. References gpstk::max(), and gpstk::min(). |
|
|
Explicit constructor.
Definition at line 138 of file SimpleFilter.hpp. |
|
|
Destructor.
Definition at line 233 of file SimpleFilter.hpp. |
|
|
Method to add a TypeID to be filtered.
Definition at line 179 of file SimpleFilter.hpp. |
|
|
Checks that the value is within the given limits.
Definition at line 245 of file SimpleFilter.hpp. |
|
|
Returns a string identifying this object.
Implements ProcessingClass. Definition at line 47 of file SimpleFilter.cpp. |
|
|
Method to get the set of TypeID's to be filtered.
Definition at line 200 of file SimpleFilter.hpp. References gpstk::TypeIDSet. |
|
|
Returns an index identifying this object.
Implements ProcessingClass. Definition at line 42 of file SimpleFilter.cpp. |
|
|
Method to get the maximum limit.
Definition at line 172 of file SimpleFilter.hpp. |
|
|
Method to get the minimum limit.
Definition at line 160 of file SimpleFilter.hpp. |
|
|
Returns a gnnsRinex object, filtering the target observables.
Implements ProcessingClass. Definition at line 219 of file SimpleFilter.hpp. |
|
|
Returns a gnnsSatTypeValue object, filtering the target observables.
Implements ProcessingClass. Definition at line 209 of file SimpleFilter.hpp. |
|
|
Returns a satTypeValueMap object, filtering the target observables.
Definition at line 55 of file SimpleFilter.cpp. References GPSTK_THROW, and gpstk::SatIDSet. |
|
|
Method to set the TypeID's to be filtered. This method will erase previous types.
Definition at line 195 of file SimpleFilter.hpp. |
|
|
Method to set a TypeID to be filtered. This method will erase previous types.
Definition at line 187 of file SimpleFilter.hpp. |
|
|
Method to set the maximum limit.
Definition at line 167 of file SimpleFilter.hpp. |
|
|
Method to set the minimum limit.
Definition at line 155 of file SimpleFilter.hpp. |
|
|
Set of types to be filtered.
Definition at line 250 of file SimpleFilter.hpp. |
|
|
Maximum value allowed for input data (in meters).
Definition at line 256 of file SimpleFilter.hpp. |
|
|
Minimum value allowed for input data (in meters).
Definition at line 253 of file SimpleFilter.hpp. |
1.3.9.1