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]
Date Sat, 07 Jul 2012 10:34:44 GMT
On Fri, Jul 06, 2012 at 10:45:40PM +0000, Italo Maia wrote:
> 
> Had this to calculate the rsquared:
> 
> OLSMultipleLinearRegression regression = new OLSMultipleLinearRegression();
> regression.newSampleData(curve_totals, data);
> System.out.println("rsquared:" + regression.calculateRSquared());
> 
> Where curve_totals is the value calculated with Fnc.fnc and the calculated a, b and c.
> 
> Used this as reference: http://commons.apache.org/math/userguide/stat.html
> 
> Is that right? 

The method computes what it says. Whether it is right for your purpose is
for you to decide...

> 
> By the way, there is a typo in the link: double rSquared = regression.caclulateRSquared();

> Where could I report it?

For those little things, here is fine, thanks. [Fixed in revision 1358535.]


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