Commit 998cab73 authored by oscar's avatar oscar

提交更新

parent eb341202
......@@ -244,7 +244,7 @@ double correct_angle(std::queue<point2d>& points)
C = X.adjoint() * X;
C = C.array() / (X.rows() - 1);
// 计算特征值和特征向量
Eigen::SelfAdjointEigenSolver<MatrixXd> eig(C); // 产生的vec和val按照特征值升序排列
Eigen::SelfAdjointEigenSolver<Eigen::MatrixXd> eig(C); // 产生的vec和val按照特征值升序排列
vec = eig.eigenvectors();
val = eig.eigenvalues();
// 打印
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment