//! 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); }
//! 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); }
bool operator()(Iterator const& it1, Iterator const& it2) const { return m_p(*it1, *it2); }