ComputePdelta.hpp

Go to the documentation of this file.
00001 #pragma ident "$Id: ComputePdelta.hpp 1308 2008-07-22 20:01:04Z architest $"
00002 
00008 #ifndef COMPUTEPDELTA_HPP
00009 #define COMPUTEPDELTA_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 ). 2007, 2008
00030 //
00031 //============================================================================
00032 
00033 
00034 
00035 #include "ComputeCombination.hpp"
00036 
00037 
00038 namespace gpstk
00039 {
00040 
00043 
00044 
00083    class ComputePdelta : public ComputeCombination
00084    {
00085    public:
00086 
00087 
00089       ComputePdelta();
00090 
00091 
00097       virtual satTypeValueMap& Process(satTypeValueMap& gData)
00098          throw(ProcessingException)
00099       { ComputeCombination::Process(gData); return gData; };
00100 
00101 
00104       virtual ComputePdelta& useC1(void)
00105       { type1 = TypeID::C1; return (*this); };
00106 
00107 
00109       virtual int getIndex(void) const;
00110 
00111 
00113       virtual std::string getClassName(void) const;
00114 
00115 
00117       virtual ~ComputePdelta() {};
00118 
00119 
00120    protected:
00121 
00122 
00124       virtual double getCombination( const double& obs1,
00125                                      const double& obs2 )
00126       { return ( ( L1_FREQ*obs1 + L2_FREQ*obs2 ) / ( DEN ) ); };
00127 
00128 
00129    private:
00130 
00131 
00132       const double DEN;       // DEN = L1_FREQ + L2_FREQ
00133 
00134 
00136       static int classIndex;
00137 
00139       int index;
00140 
00142       void setIndex(void)
00143       { index = classIndex++; };
00144 
00145 
00146    }; // End of class 'ComputePdelta'
00147 
00149 
00150 }
00151 #endif   // COMPUTEPDELTA_HPP

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