It was assumed that sumX is 0 so double centeredSumXY = sumXY - meanY * sumX;
reduces to double centeredSumXY = sumXY; right? On Sun, Apr 24, 2011 at 11:36 PM, Sean Owen <[email protected]> wrote: > It's correct. :) Want to show your working or me to post the derivation? > > On Sun, Apr 24, 2011 at 4:07 PM, Shem Cristobal <[email protected] > >wrote: > > > Has anyone seen this line 235 (and line 313) of AbstractSimilarity.class? > > > > double centeredSumXY = sumXY - meanY * sumX; > > > > This is so wrong and should be replaced by > > > > double centeredSumXY = sumXY - meanY * meanX; > > > > > > > > Best regards, > > > > @shemcristobal > > > -- Best regards, Shem Cristobal Project Manager, Stratpoint Global Outsourcing, Inc. Unit 601 Tower 1 Globe Telecom Plaza Pioneer St corner Madisson St Mandaluyong City, Philippines 1552 Email: [email protected] Website: http://www.stratpoint.com/ Microsoft Certified Application Developer for .NET Microsoft Certified Solution Developer for .NET Microsoft Certified Technology Specialist - SQL Server 2005 Microsoft Certified Technology Specialist - MS Project 2007
