Changeset 8915 in ntrip for trunk/BNC/src/PPP/pppFilter.h


Ignore:
Timestamp:
Apr 9, 2020, 10:31:37 PM (4 years ago)
Author:
stuerze
Message:

minor changes regarding PPP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppFilter.h

    r8912 r8915  
    7575  };
    7676
     77  class t_datumTrafo{
     78  public:
     79    t_datumTrafo () {initIndices();}
     80    void initIndices() {_firstRow = 1; _lastRow = 0;}
     81    void setFirstSystem(bool firstSys) {_firstSys = firstSys;}
     82    bool firstSystem() {return _firstSys;}
     83    void updateIndices(int maxObs) {
     84      if (_firstSys) {
     85        initIndices();
     86      }
     87      else {
     88        _firstRow += maxObs;
     89      }
     90      _lastRow += maxObs;
     91    };
     92    void initAA(int maxObs, int numPar) {
     93      _AA1.ReSize(maxObs, numPar); _AA1 = 0.0;
     94      _AA2.ReSize(maxObs, numPar); _AA2 = 0.0;
     95    }
     96    void prepareAA(Matrix& AA, int _numEpoProcessing, int nPar) {
     97      Matrix& Prep = _AA2;
     98      if (_numEpoProcessing == 1) {
     99        Prep = _AA1;
     100      }
     101      Prep.SubMatrix(_firstRow, _lastRow, 1, nPar) = AA;
     102    }
     103    Matrix varCov(const SymmetricMatrix& QFlt) {
     104      Matrix D21 = (_AA2.t() * _AA2).i() * _AA2.t() * _AA1;
     105      return D21 * QFlt * D21.t();
     106    }
     107    int     _firstRow;
     108    int     _lastRow;
     109    Matrix  _AA1;
     110    Matrix  _AA2;
     111    bool    _firstSys;
     112  };
     113
    77114  t_irc processSystem(const std::vector<t_lc::type>& LCs,
    78115                      const std::vector<t_pppSatObs*>& obsVector,
     
    93130  void predictCovCrdPart(const SymmetricMatrix& QFltOld);
    94131
    95   void initDatumTransformation(int numOfAllUsedLCs);
    96 
    97132  bncTime         _epoTime;
    98133  t_pppParlist*   _parlist;
    99134  t_pppObsPool*   _obsPool;
     135  t_datumTrafo*   _datumTrafo;
    100136  SymmetricMatrix _QFlt;
    101   Matrix          _AA1;
    102   Matrix          _AA2;
    103137  ColumnVector    _xFlt;
    104138  ColumnVector    _x0;
    105139  t_slip          _slips[t_prn::MAXPRN+1];
    106140  int             _numSat;
    107   int             _numOfEpochProcessing;
     141  int             _numEpoProcessing;
     142  int             _numAllUsedLCs;
    108143  t_dop           _dop;
    109144  bncTime         _firstEpoTime;
Note: See TracChangeset for help on using the changeset viewer.