2

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.

I know it might be a tough or too generic question, and I'm sorry about it.

G4bri3l
  • 4,996
  • 4
  • 31
  • 53

1 Answers1

0

A previous question covered this.

Here's an implementation though it's in C++ not Java.

Community
  • 1
  • 1
arx
  • 16,686
  • 2
  • 44
  • 61
  • Yeah, thanks, but I know both. The previous question is actually confusing me. But now that I'm thinking, maybe I can use PCA and find the principal components and then find the plane given these princpal directions. I'm considering this solution because I've already implemented PCA algorithm. – G4bri3l Jan 16 '12 at 09:36