Вопрос

Given a Matrix, I'm interested in the Eigenvalues and the corresponding Eigenvector.

Using Jama, I can get the Eigenvalues and the Eigenvectors, yet the correlation between the two is not defined: I want to map each Eigenvector to the corresponding Eigenvalue.

Can you please recommend me of a way to do so? I tried to implement it myself but it got nasty.

Thanks :)


I am trying to look for an authorized answer, yet for now, According to experiments and observation I performed, the eigenvectors and evigenValues seem to be corresponding.

Это было полезно?

Решение 2

I asked the developer of the Weka by mail regrading the above issue and they confirm the assumption -

The eigenvectors are indeed provided in the same order as the eigenvalues.

Другие советы

Usually they are presented in corresponding order. But you can always multiply an eigenvector by the matrix and seeing what multiplier it applies to the vector. That's also your eigenvalue directly.

Use a hashmap to store them? I'm not sure this answer is relevant given the question is a bit vague..

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top