Re: C for Polynomial Fit
- From: Spehro Pefhany <speffSNIP@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 29 Dec 2007 08:15:57 -0500
On Sat, 29 Dec 2007 02:06:02 -0500, the renowned CBFalconer
<cbfalconer@xxxxxxxxx> wrote:
Gary Pace wrote:
Does anybody know where I can find code for a C function to fit
an (N-1)th order polynomial to N (x,y) data points. Actually I
need to fit a 5th order polynomial to 11 x,y points.
Simply look up the general art of "Least squares fit". Be advised
that the resultant matrices can be fairly unstable.
Indeed. If I was to be charged with designing code to fit data in
runtime I'd more than likely opt for something along the lines of a
cubic spline fit, which uses more data storage but is not as prone to
blow itself into smithereens (numerically speaking).
Best regards,
Spehro Pefhany
--
"it's the network..." "The Journey is the reward"
speff@xxxxxxxxxxxx Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog Info for designers: http://www.speff.com
.
- References:
- C for Polynomial Fit
- From: Gary Pace
- Re: C for Polynomial Fit
- From: CBFalconer
- C for Polynomial Fit
- Prev by Date: Re: 8051 and a C switch statement
- Next by Date: Re: BIN-LADEN IS KILLED! (PHOTO)
- Previous by thread: Re: C for Polynomial Fit
- Next by thread: Re: C for Polynomial Fit
- Index(es):