Re: [問題] How to solve Ax=b that A is not inve …

作者: Yyh (我愛批踢踢)   2006-04-15 21:44:35
※ 引述《brooky (未夠班)》之銘言:
: ※ 引述《inuy (一歩一步前進中)》之銘言:
: : SVD
Thank you! I have solved it :p
: Can we just use 'lsfit' ?
: *****************************************
: Description of lsfit:
: The least squares estimate of *b* in the model
: y = X b + e
: is found.
: *****************************************
hmm, lsfit could be used to verify our answer.
btw, when I run the dataset "space_ga",
I got the following statement,
錯誤在solve.default(lhs) : 系統計算上是獨特的: 互反條件數=6.78798e-020
But "lhs" is invertible (lhs is square and det(lhs)!=0)
what's wrong here?

Links booklink

Contact Us: admin [ a t ] ucptt.com