[R] underdetermined system
magno_yu at ml.com
Tue Oct 16 17:33:53 CEST 2007
Hi, sorry, I'm an idiot.. and I know I'm missing something stupid..
I thought if we solve an underdetermine system with QR, my soln is:
min ||x|| (L2 sense) such that Ax = b
then say i have:
> w <- matrix(c(1, 5), ncol=2)
> sw = 2
> qrW = qr(t(w) %*% w)
> qr.coef(qrW, t(w) %*% sw)
but we also have soln (0, 2/5) which obviously has a smaller distance in L2
than (2, 0). Am I missing something very obvious? Thanks a lot!!!!
View this message in context: http://www.nabble.com/underdetermined-system-tf4634837.html#a13235711
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help