Concept providing functions to extract eigenvectors and eigenvalue from covariance matrices represented by an array a
as follows:
[a[0]a[1]a[2]a[1]a[3]a[4]a[2]a[4]a[5]] - Has Models:
CGAL::Eigen_vcm_traits
static bool VCMTraits::diagonalize_selfadjoint_covariance_matrix |
( |
const cpp11::array< double, 6 > & |
cov, |
|
|
cpp11::array< double, 3 > & |
eigenvalues |
|
) |
| |
|
static |
fill eigenvalues
with the eigenvalues of the covariance matrix represented by cov
.
Eigenvalues are sorted by increasing order.
- Returns
true
if the operation was successful and false
otherwise.
static bool VCMTraits::extract_largest_eigenvector_of_covariance_matrix |
( |
const cpp11::array< double, 6 > & |
cov, |
|
|
cpp11::array< double, 3 > & |
normal |
|
) |
| |
|
static |
Extract the eigenvector associated to the largest eigenvalue of the covariance matrix represented by cov
.
- Returns
true
if the operation was successful and false
otherwise.