User Portlet User Portlet

Discussions
From the wording it appears that you are looking for a "total least squares" result. That can be done using the singular values decomposition.