This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Problem with least-squares fitting.
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Tiago de Paula Peixoto <count0 at fissionauthority dot com>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Wed, 6 Nov 2002 12:08:03 +0000 (GMT)
- Subject: Re: Problem with least-squares fitting.
- References: <20021104144602.6c7d4dab.count0@fissionauthority.com>
Tiago de Paula Peixoto writes:
> I'm experiencing a weird error message using the GSL linear least
> squares
> multi-parameter fitting. When I try to fit a function with only one
> parameter, such as "y = a * x", I get the following error:
> subvector_source.c:28: vector length n must be positive integer
> (gsl_error: invalid argument supplied by user)
> The fit results seem OK, and I don't know what I'm doing
> wrong. When I fit with 2 parameters or more, everything works fine.
Thanks for the bug report. I think the SVD routine does not handle
the special case of N=1 properly.
regards
Brian