コード例 #1
0
ファイル: KalmanFilter.hpp プロジェクト: Aero348/dune
      //! Get covariance matrix value.
      //! @param in row and column index.
      //! @return covariance matrix value.
      inline double
      getCovariance(short in) const
      {
        if ((size_t)in >= m_state_count)
          throw std::runtime_error(DTR("invalid index"));

        return m_p(in, in);
      }
コード例 #2
0
ファイル: KalmanFilter.hpp プロジェクト: Aero348/dune
      //! Get covariance matrix value.
      //! @param ln row index.
      //! @param cl column index.
      //! @return covariance matrix value.
      inline double
      getCovariance(short ln, short cl) const
      {
        if (ln >= m_p.rows() || cl >= m_p.columns())
          throw std::runtime_error(DTR("invalid index"));

        return m_p(ln, cl);
      }
コード例 #3
0
 bool operator()(Iterator const& it1,
                 Iterator const& it2) const { return m_p(*it1, *it2); }