- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 250字
- 2021-07-09 21:07:50
Eigenvalues and eigenvectors
Ax = b is a linear equation which emerges from static problems. Eigenvalues, on the other hand, are used for dynamic problems. Let's consider A as a matrix with x as a vector; we will now solve the new equation in linear algebra, Ax= λx.
As A multiplies x, the vector x changes its direction. But there are certain vectors in the same direction as Ax-these are known as eigenvectors, for which the following equation holds good:
Ax= λx
In the last equation, vector Ax is lambda times the vector x, and λ is known as eigenvalue. Eigenvalue λ gives the direction of a vector-if it is reversed, or is in the same direction.
Ax= λx also conveys that det(A - λI) = 0, where I is the identity matrix. This determines n eigenvalues.
The eigenvalue problem is defined as follows:
A x = λ x
A x-λ x = 0
A x-λ I x = 0
(A-λ I) x = 0
If x is non-zero, the preceding equation will have a solution only if |A-λ I| = 0. Using this equation, we can find eigenvalues.
val A = DenseMatrix((9.0,0.0,0.0),(0.0,82.0,0.0),(0.0,0.0,25.0))
val es = eigSym(A)
val lambda = es.eigenvalues
val evs = es.eigenvectors
println("lambda is : " + lambda)
println("evs is : " + evs)
This last code gives us the following result:
lambda is : DenseVector(9.0, 25.0, 82.0)
evs is : 1.0 0.0 0.0
0.0 0.0 1.0
0.0 1.0 -0.0
- 機(jī)器學(xué)習(xí)實(shí)戰(zhàn):基于Sophon平臺(tái)的機(jī)器學(xué)習(xí)理論與實(shí)踐
- 精通Excel VBA
- Visual C++編程全能詞典
- Learning C for Arduino
- 21天學(xué)通C語(yǔ)言
- 中國(guó)戰(zhàn)略性新興產(chǎn)業(yè)研究與發(fā)展·工業(yè)機(jī)器人
- PostgreSQL 10 Administration Cookbook
- 突破,Objective-C開發(fā)速學(xué)手冊(cè)
- 面向?qū)ο蟪绦蛟O(shè)計(jì)綜合實(shí)踐
- 新編計(jì)算機(jī)圖形學(xué)
- 計(jì)算機(jī)組網(wǎng)技術(shù)
- Python文本分析
- 計(jì)算智能算法及其生產(chǎn)調(diào)度應(yīng)用
- 網(wǎng)絡(luò)安全概論
- PostgreSQL High Performance Cookbook