public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Patrick Alken <patrick.alken@colorado.edu>
To: gsl-discuss@sourceware.org
Subject: computing R-squared with gsl_multifit
Date: Tue, 25 Sep 2007 19:46:00 -0000	[thread overview]
Message-ID: <20070925194628.GA22578@hippogriff.physics.drexel.edu> (raw)

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

             reply	other threads:[~2007-09-25 19:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25 19:46 Patrick Alken [this message]
2007-09-26 15:52 ` Brian Gough
2007-09-26 16:18   ` Dirk Eddelbuettel
2007-09-26 16:26     ` Patrick Alken
2007-09-26 16:43       ` Dirk Eddelbuettel
2007-09-26 16:20   ` Patrick Alken
2007-10-02  8:35     ` Brian Gough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070925194628.GA22578@hippogriff.physics.drexel.edu \
    --to=patrick.alken@colorado.edu \
    --cc=gsl-discuss@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).