35 #include <Eigen/Dense>
37 using Eigen::Vector2d;
38 using Eigen::VectorXd;
39 using Eigen::Matrix2d;
40 using Eigen::MatrixXd;
42 template<
typename Derived>
43 inline bool is_finite(
const Eigen::MatrixBase<Derived>& x)
45 return ( (x - x).array() == (x - x).array()).all();
48 template<
typename Derived>
49 inline bool is_nan(
const Eigen::MatrixBase<Derived>& x)
51 return ((x.array() == x.array())).all();
54 double mahalanobis(Vector2d&y,Vector2d&mean,Matrix2d& cov);
55 double biVariatePDF(Vector2d& x,Vector2d& m,Matrix2d& cov);
double mahalanobis(Vector2d &y, Vector2d &mean, Matrix2d &cov)
bool is_nan(const Eigen::MatrixBase< Derived > &x)
double biVariatePDF(Vector2d &x, Vector2d &m, Matrix2d &cov)
bool is_finite(const Eigen::MatrixBase< Derived > &x)