Hi.

> I have a nx2 matrix to which I would like to fit a function.

Which function?

> For such I
> need to define the function parameters (3 in total) that result in the best
> R² for the dataset. I'm nowhere familiar with Math commons but I was told
> OLSMultipleLinearRegression could do that. I'm in a pitch here as I was
> unable to acomplish it. In python, this is easely acomplished as seem in
> this example (using scipy)
> http://stackoverflow.com/questions/7588371/scipy-leastsq-goodness-of-fit-estimator
> 
> How could I do something similar with java math commons? Thanks.

Did you have a look at the classes in the package
"org.apache.commons.math3.optimization" ?


Regards,
Gilles

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to