00001 #pragma ident "$Id: ARBase.hpp 2620 2011-05-26 14:42:13Z yanweignss $" 00002 00008 #ifndef GPSTK_ARBASE_HPP 00009 #define GPSTK_ARBASE_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 // Wei Yan - Chinese Academy of Sciences . 2011 00030 // 00031 //============================================================================ 00032 00033 #include "Exception.hpp" 00034 #include "Matrix.hpp" 00035 00036 namespace gpstk 00037 { 00039 NEW_EXCEPTION_CLASS(ARException, Exception); 00040 00041 00045 class ARBase 00046 { 00047 public: 00048 00050 ARBase(){} 00051 00052 00055 virtual Matrix<double> sd2ddMatrix(const size_t& n, const size_t& i) 00056 throw(ARException); 00057 00058 00060 virtual void computeFloatAmbiguity(const Matrix<double>& A, 00061 const Matrix<double>& B, 00062 const Matrix<double>& W, 00063 const Vector<double>& y, 00064 Vector<double>& ambFloat, 00065 Matrix<double>& ambCov, 00066 double smFactor = 0.001) 00067 throw(ARException); 00068 00069 00071 virtual Vector<double> resolveIntegerAmbiguity( 00072 const Vector<double>& ambFloat, 00073 const Matrix<double>& ambCov ) =0; 00074 00076 virtual ~ARBase(){} 00077 00078 protected: 00079 00080 00081 }; // End of class 'ARBase' 00082 00083 } // End of namespace gpstk 00084 00085 00086 #endif //GPSTK_ARBASE_HPP 00087
1.3.9.1