eigenvalue_decomposition¶
-
menpo.math.
eigenvalue_decomposition
(C, eps=1e-10)[source]¶ Eigenvalue decomposition of a given covariance (or scatter) matrix.
Parameters: - C (
(N, N)
ndarray) – Covariance/Scatter matrix - eps (float, optional) –
Tolerance value for positive eigenvalue. Those eigenvalues smaller than the specified eps value, together with their corresponding eigenvectors, will be automatically discarded. The final limit is computed as
limit = np.max(np.abs(eigenvalues)) * eps
Returns: - pos_eigenvectors (
(N, p)
ndarray) – The matrix with the eigenvectors corresponding to positive eigenvalues. - pos_eigenvalues (
(p,)
ndarray) – The array of positive eigenvalues.
- C (