Re: C for Polynomial Fit



Gary Pace wrote:
Howdy :

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.

Thanks folks,
Gary

In answer to Herr Bröker's post, I posted here because I hoped to get intelligent and helpful suggestions - which I did - many thanks to those folks who posted. (Actually, I need the code for an embedded application, but it will run in the background so I'm not overly concerned about resources).

I at least know where to start...I suppose it was always a faint hope that somebody would say "follow this link to the source for int UnconditionalPerfectPolyFit(int n, int m, double *X, double *Y, double *K)", but hey, it was worth a try.

.



Relevant Pages

  • [PATCH] I2C: Coding style cleanups to via686a
    ... (These conversions were contributed by Jonathan Teh Soon Yew ... int inNum) ... smooth function fit to the data will allow us to get better precision. ... - VIA register values 0-255. ...
    (Linux-Kernel)
  • Re: Use of large field definitions for small values
    ... but the field is actually defined as int or even larger as bigint. ... Less data can fit in a page....This will degrade performance. ... Let say we have a single column table which is BigInt which you could ... Now abt the CPU. ...
    (comp.databases.ms-sqlserver)
  • Re: No accessible overloaded
    ... called (int, string, int, int). ... (obviously the conversion works OK). ... Dim ii As Integer = ss ... Even though it is obvious to us that 32 will fit in a Short, the compiler pretty much only works one line at a time, and all it sees is that you are trying to fit a quart in a pint pot. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Getting nanoseconds in a process
    ... How do you know their value will fit in an int? ... But you can't avoid a cast by using a "correct" conversion ... to the system's largest int type should be safe enough. ... time_t could be a floating point type, ...
    (comp.lang.c)
  • Re: Scaling an Image to Print on 1 page
    ... scale it to fit on one page. ... drawImage(Image img, int x, int y, int width, int height, ImageObserver ... Change the kittens.jpg to your own image and adjust the PageFormat with the dialog. ... public void paintComponent{ ...
    (comp.lang.java.programmer)