title: Least Square Method 3D
body: <p>Is there anything that can give me the best fitting plane (I'm talking about Java libraries or anything usefull), given a set of N points ? I have to say that the coordinates are not realted, I mean that z = f(x,y) is not true. Anything usefull would be ok. I have to use this stuff in Java.</p>
  
  <p>I know it might be a tough or too generic question, and I'm sorry about it.</p>