From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32339 invoked by alias); 25 Sep 2007 19:46:35 -0000 Received: (qmail 32331 invoked by uid 22791); 25 Sep 2007 19:46:35 -0000 X-Spam-Check-By: sourceware.org Received: from sccrmhc14.comcast.net (HELO sccrmhc14.comcast.net) (63.240.77.84) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Sep 2007 19:46:29 +0000 Received: from hippogriff.homeunix.org ([24.8.97.215]) by comcast.net (sccrmhc14) with ESMTP id <2007092519462701400rhnlie>; Tue, 25 Sep 2007 19:46:27 +0000 Received: by hippogriff.homeunix.org (Postfix, from userid 1000) id 9F0506993; Tue, 25 Sep 2007 13:46:28 -0600 (MDT) Date: Tue, 25 Sep 2007 19:46:00 -0000 From: Patrick Alken To: gsl-discuss@sourceware.org Subject: computing R-squared with gsl_multifit Message-ID: <20070925194628.GA22578@hippogriff.physics.drexel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00041.txt.bz2 Hi all, This is a continuation of the discussion from help-gsl on computing the R^2 "coefficient of determination" for multi-parameter fits. I think it would be a useful thing to have and I propose that the best way to add it in would be to compute it in gsl_multifit_linear and gsl_multifit_wlinear and store it in the gsl_multifit workspace. Then provide a function like gsl_multifit_linear_Rsq to return the value to the user. This way we wouldn't need to change the api and the multifit_linear routines would remain backwards compatible. Computing the value would require adding about 4-5 lines of code and it can be computed at the same time as chisq so there doesn't have to be an extra loop added in. Patrick Alken