00001 #pragma ident "$Id: SolverBase.hpp 1312 2008-07-24 18:15:26Z architest $" 00002 00008 #ifndef SOLVERBASE_HPP 00009 #define SOLVERBASE_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 ). 2006, 2007, 2008 00030 // 00031 //============================================================================ 00032 00033 00034 00035 #include "Exception.hpp" 00036 #include "Matrix.hpp" 00037 #include "Vector.hpp" 00038 00039 00040 namespace gpstk 00041 { 00042 00046 NEW_EXCEPTION_CLASS(InvalidSolver, gpstk::Exception); 00047 00048 00050 00051 00052 00056 class SolverBase 00057 { 00058 public: 00059 00060 00062 SolverBase() : valid(false) {}; 00063 00065 bool isValid(void) 00066 { return valid; } 00067 00069 Vector<double> solution; 00070 00072 Vector<double> postfitResiduals; 00073 00075 Matrix<double> covMatrix; 00076 00078 virtual ~SolverBase() {}; 00079 00080 00081 protected: 00082 00083 00084 bool valid; // true only if results are valid 00085 00086 00087 }; // End of class 'SolverBase' 00088 00090 00091 } // End of namespace gpstk 00092 #endif // SOLVERBASE_HPP
1.3.9.1