commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <>
Subject Re: [math] Fit function to data set
Date Tue, 03 Jul 2012 22:02:54 GMT

> 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)
> 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" ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message