Is there a Ruby library that allows me to do either linear or non-linear least squares approximation of a set of data.
What I would like to do is the following:
- Given a series of [x,y] data points
- Generate a linear or non linear least squares approximation against that data
- The library doesn't have to figure out if it needs to do a linear or non linear approximation. The caller of the library should know what type of regression they need
I'd prefer not to have to try to port some C/C++/Java library to get this functionality so I'm hoping there is some existing Ruby lib that I can use.