LinearCombinations Class Reference
[GPSTk data structures]

#include <LinearCombinations.hpp>

Collaboration diagram for LinearCombinations:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class defines handy linear combinations of GDS data.

This class is meant to be used with the GNSS data structures (GDS) objects found in "DataStructures" class, and it is intended to be coupled with class ComputeLinear.hpp.

A typical way to use this class follows:

      // Define a LinearCombinations object
   LinearCombinations comb;

      // Object to compute linear combinations of data
      // Linear combinations will be computed in a FIFO basis
   ComputeLinear linear;

      // Add a linear combination to compute PC combination using C1
   linear.addLinear(comb.pcCombWithC1);

      // Add a linear combination to compute prefit residual using PC
   linear.addLinear(comb.pcPrefit);


      // Load observation data
   RinexObsStream rin("ebre0300.02o");

      // Loads precise ephemeris object with file data
   SP3EphemerisStore SP3EphList;
   SP3EphList.loadFile("igs11513.sp3");

      // Sets nominal position of receiver
   Position nominalPos(4833520.3800, 41536.8300, 4147461.2800);

      // Declare a MOPSTropModel object, setting the defaults
   MOPSTropModel mopsTM( nominalPos.getAltitude(),
                         nominalPos.getGeodeticLatitude(), 30);

      // Object to compute the tropospheric data
   ComputeTropModel computeTropo(mopsTM);

      // Declare a basic modeler
   BasicModel basic(nominalPos, SP3EphList);

   gnssRinex gRin;

   while(rin >> gRin)
   {

      gRin >> basic >> computeTropo >> linear;

         // Dump results
      gRin.body.dump(cout,1);

   }

See also:
ComputeLinear.hpp

Definition at line 107 of file LinearCombinations.hpp.

Public Member Functions

 LinearCombinations ()
 Default constructor.

Static Public Member Functions

double freqOfLC (int i, int j, double f1=L1_FREQ, double f2=L2_FREQ)
 Return the frequency of the combination in cycles: i * L1 + j * L2.
double wavelengthOfLC (int i, int j, double f1=L1_FREQ, double f2=L2_FREQ)
 Return the wavelength of the combination in cycles: i * L1 + j * L2.
double firstFactorOfLC (int i, int j, double f1=L1_FREQ, double f2=L2_FREQ)
 Return the f1 factor of the combination in cycles: i * L1 + j * L2.
double secondFactorOfLC (int i, int j, double f1=L1_FREQ, double f2=L2_FREQ)
 Return the f2 factor of the combination in cycles: i * L1 + j * L2.

Public Attributes

gnssLinearCombination c1Prefit
 Definition to compute prefit residual of C1.
gnssLinearCombination p1Prefit
 Definition to compute prefit residual of P1.
gnssLinearCombination l1Prefit
 Definition to compute prefit residual of L1.
gnssLinearCombination pcCombination
 Definition to compute PC combination.
gnssLinearCombination pcCombWithC1
 Definition to compute PC combination, using C1 instead of P1.
gnssLinearCombination pcPrefit
 Definition to compute prefit residual of PC.
gnssLinearCombination lcCombination
 Definition to compute LC combination.
gnssLinearCombination lcPrefit
 Definition to compute prefit residual of LC.
gnssLinearCombination piCombination
 Definition to compute PI combination.
gnssLinearCombination piCombWithC1
 Definition to compute PI combination, using C1 instead of P1.
gnssLinearCombination liCombination
 Definition to compute LI combination.
gnssLinearCombination pdeltaCombination
 Definition to compute Pdelta (PW) combination.
gnssLinearCombination pdeltaCombWithC1
 Definition to compute Pdelta (PW) combination, using C1 instead of P1.
gnssLinearCombination ldeltaCombination
 Definition to compute Ldelta (LW) combination.
gnssLinearCombination mwubbenaCombination
 Definition to compute the Melbourne-Wubbena (W) combination.
gnssLinearCombination mwubbenaPrefit
 Definition to compute the prefit residual of Melbourne-Wubbena (W) combination.
gnssLinearCombination mwubbenaCombWithC1
 Definition to compute the Melbourne-Wubbena (W) combination, using C1 instead of P1.
gnssLinearCombination GRAPHIC1Combination
 Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L1 frequency.
gnssLinearCombination GRAPHIC1CombinationWithC1
 Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L1 frequency (using C1 instead of P1).
gnssLinearCombination GRAPHIC2Combination
 Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L2 frequency.
gnssLinearCombination GRAPHIC5Combination
 Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L5 frequency.
gnssLinearCombination GRAPHIC6Combination
 Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L6 frequency.
gnssLinearCombination GRAPHIC7Combination
 Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L7 frequency.
gnssLinearCombination GRAPHIC8Combination
 Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L8 frequency.
gnssLinearCombination wlCombination
 Definition to compute the WL combination.
gnssLinearCombination wlPrefit
 Definition to compute prefit residual of WL.
gnssLinearCombination wl2Combination
 Definition to compute the WL2 combination.
gnssLinearCombination wl2Prefit
 Definition to compute prefit residual of WL2.
gnssLinearCombination wl4Combination
 Definition to compute the WL4 combination.
gnssLinearCombination wl4Prefit
 Definition to compute prefit residual of WL4.


Constructor & Destructor Documentation

LinearCombinations  ) 
 

Default constructor.

Definition at line 37 of file LinearCombinations.cpp.

References gnssData::body, LinearCombinations::c1Prefit, LinearCombinations::firstFactorOfLC(), gpstk::GAMMA_GPS, LinearCombinations::GRAPHIC1Combination, LinearCombinations::GRAPHIC1CombinationWithC1, LinearCombinations::GRAPHIC2Combination, LinearCombinations::GRAPHIC5Combination, LinearCombinations::GRAPHIC6Combination, LinearCombinations::GRAPHIC7Combination, LinearCombinations::GRAPHIC8Combination, gnssData::header, gpstk::L1_FREQ, gpstk::L1_WAVELENGTH, LinearCombinations::l1Prefit, gpstk::L2_FREQ, LinearCombinations::lcCombination, LinearCombinations::lcPrefit, LinearCombinations::ldeltaCombination, LinearCombinations::liCombination, LinearCombinations::mwubbenaCombination, LinearCombinations::mwubbenaCombWithC1, LinearCombinations::mwubbenaPrefit, LinearCombinations::p1Prefit, LinearCombinations::pcCombination, LinearCombinations::pcCombWithC1, LinearCombinations::pcPrefit, LinearCombinations::pdeltaCombination, LinearCombinations::pdeltaCombWithC1, LinearCombinations::piCombination, LinearCombinations::piCombWithC1, LinearCombinations::secondFactorOfLC(), LinearCombinations::wavelengthOfLC(), LinearCombinations::wl2Combination, LinearCombinations::wl2Prefit, LinearCombinations::wl4Combination, LinearCombinations::wl4Prefit, LinearCombinations::wlCombination, and LinearCombinations::wlPrefit.


Member Function Documentation

double firstFactorOfLC int  i,
int  j,
double  f1 = L1_FREQ,
double  f2 = L2_FREQ
[static]
 

Return the f1 factor of the combination in cycles: i * L1 + j * L2.

Definition at line 297 of file LinearCombinations.cpp.

References LinearCombinations::freqOfLC().

Referenced by LinearCombinations::LinearCombinations().

double freqOfLC int  i,
int  j,
double  f1 = L1_FREQ,
double  f2 = L2_FREQ
[static]
 

Return the frequency of the combination in cycles: i * L1 + j * L2.

Definition at line 285 of file LinearCombinations.cpp.

Referenced by LinearCombinations::firstFactorOfLC(), LinearCombinations::secondFactorOfLC(), and LinearCombinations::wavelengthOfLC().

double secondFactorOfLC int  i,
int  j,
double  f1 = L1_FREQ,
double  f2 = L2_FREQ
[static]
 

Return the f2 factor of the combination in cycles: i * L1 + j * L2.

Definition at line 303 of file LinearCombinations.cpp.

References LinearCombinations::freqOfLC().

Referenced by LinearCombinations::LinearCombinations().

double wavelengthOfLC int  i,
int  j,
double  f1 = L1_FREQ,
double  f2 = L2_FREQ
[static]
 

Return the wavelength of the combination in cycles: i * L1 + j * L2.

Definition at line 291 of file LinearCombinations.cpp.

References gpstk::C_GPS_M, and LinearCombinations::freqOfLC().

Referenced by LinearCombinations::LinearCombinations().


Member Data Documentation

gnssLinearCombination c1Prefit
 

Definition to compute prefit residual of C1.

Definition at line 115 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination GRAPHIC1Combination
 

Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L1 frequency.

Definition at line 170 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination GRAPHIC1CombinationWithC1
 

Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L1 frequency (using C1 instead of P1).

Definition at line 174 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination GRAPHIC2Combination
 

Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L2 frequency.

Definition at line 178 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination GRAPHIC5Combination
 

Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L5 frequency.

Definition at line 182 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination GRAPHIC6Combination
 

Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L6 frequency.

Definition at line 186 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination GRAPHIC7Combination
 

Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L7 frequency.

Definition at line 190 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination GRAPHIC8Combination
 

Definition to compute the GRoup And PHase Ionospheric Combination (GRAPHIC) in the L8 frequency.

Definition at line 194 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination l1Prefit
 

Definition to compute prefit residual of L1.

Definition at line 121 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination lcCombination
 

Definition to compute LC combination.

Definition at line 133 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination lcPrefit
 

Definition to compute prefit residual of LC.

Definition at line 136 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination ldeltaCombination
 

Definition to compute Ldelta (LW) combination.

Definition at line 155 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination liCombination
 

Definition to compute LI combination.

Definition at line 145 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination mwubbenaCombination
 

Definition to compute the Melbourne-Wubbena (W) combination.

Definition at line 158 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination mwubbenaCombWithC1
 

Definition to compute the Melbourne-Wubbena (W) combination, using C1 instead of P1.

Definition at line 166 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination mwubbenaPrefit
 

Definition to compute the prefit residual of Melbourne-Wubbena (W) combination.

Definition at line 162 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination p1Prefit
 

Definition to compute prefit residual of P1.

Definition at line 118 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination pcCombination
 

Definition to compute PC combination.

Definition at line 124 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination pcCombWithC1
 

Definition to compute PC combination, using C1 instead of P1.

Definition at line 127 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination pcPrefit
 

Definition to compute prefit residual of PC.

Definition at line 130 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination pdeltaCombination
 

Definition to compute Pdelta (PW) combination.

Definition at line 148 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination pdeltaCombWithC1
 

Definition to compute Pdelta (PW) combination, using C1 instead of P1.

Definition at line 152 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination piCombination
 

Definition to compute PI combination.

Definition at line 139 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination piCombWithC1
 

Definition to compute PI combination, using C1 instead of P1.

Definition at line 142 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination wl2Combination
 

Definition to compute the WL2 combination.

Definition at line 203 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination wl2Prefit
 

Definition to compute prefit residual of WL2.

Definition at line 206 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination wl4Combination
 

Definition to compute the WL4 combination.

Definition at line 209 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination wl4Prefit
 

Definition to compute prefit residual of WL4.

Definition at line 212 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination wlCombination
 

Definition to compute the WL combination.

Definition at line 197 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().

gnssLinearCombination wlPrefit
 

Definition to compute prefit residual of WL.

Definition at line 200 of file LinearCombinations.hpp.

Referenced by LinearCombinations::LinearCombinations().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 03:31:30 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1