38 #include <Base/Math/Math.hh>
40 #include <MathAlgo/SVD.hh>
50 const int nr_of_points = 7;
55 A[0][0] = -1; A[0][1] = 0; A[0][2] = 0; A[0][3] = 1;
56 A[1][0] = -1; A[1][1] = 1; A[1][2] = 0; A[1][3] = 1;
57 A[2][0] = -1; A[2][1] = 0; A[2][2] = 1; A[2][3] = 1;
58 A[3][0] = -1; A[3][1] = 1; A[3][2] = 1; A[3][3] = 1;
59 A[4][0] = -1; A[4][1] = 0.5; A[4][2] = 0.5; A[4][3] = 1;
61 A[5][0] = -1; A[5][1] = 0.51; A[5][2] = 0.59; A[5][3] = 0.9;
62 A[6][0] = -1; A[6][1] = 3.49; A[6][2] = 0.55; A[6][3] = 1.1;
67 cout <<
"calc_Regressionsebene " << endl;
68 cout <<
"Designmatrix (Matrix<double>) A: " << A << endl;
79 solution = svd.GetNullvector();
80 cout <<
"solution: " << solution << endl;
86 n_vec[0] = solution[1];
87 n_vec[1] = solution[2];
88 n_vec[2] = solution[3];
95 cout <<
" plane in HNF: d = "<<d<<endl;
96 cout <<
" n_vce'0 : " << n_vec << endl;
105 set_example_designmatrix( M );
106 calc_Regressionsebene( M );
computes and holds the singular value decomposition of a rectangular (not necessarily quadratic) Matr...
Matrix< T > & newsize(Subscript M, Subscript N)
Vector3< T > & Normalize()
normalize this vector to length 1
double NormL2() const
the L2 norm sqrt(a^2 + b^2 + c^2)