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