private void SVD_OfPointCloud(PointCloudVertices pointsSource, bool normalsCovariance) { //calculate correlation matrix Matrix3d C = PointCloudVertices.CovarianceMatrix(pointsSource, normalsCovariance); SVD.Eigenvalues_Helper(C); EV = SVD.EV; VT = SVD.VT; U = SVD.U; }
private void SVD_ForListVectorsMassCentered(List <Vector3d> pointsSource, bool normalsCovariance) { //calculate correlation matrix Matrix3d C = PointCloudVertices.CovarianceMatrix(pointsSource, normalsCovariance); SVD.Eigenvalues_Helper(C); EV = SVD.EV; VT = SVD.VT; U = SVD.U; V = Matrix3d.Transpose(VT); }