commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [math] Fit function to data set
Date Tue, 03 Jul 2012 22:02:54 GMT
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: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message