Home »
Public Forums »
archive »
least square error for a sinusoid
least square error for a sinusoid [message #41042] |
Wed, 15 September 2004 15:31 |
yaj
Messages: 6 Registered: July 2004
|
Junior Member |
|
|
Hello,
I am fitting a function of the form
ASin(wt + theta) + constant to a set of points. Instead of a readymade
fitting routine from IDL (to avoid any potential problems with small numbers
later), I use the three linear equations to minimize the least square error,
then use an IDL function to solve the matrix equation. Could someone suggest
a simple way to calculate the least squares error and goodness of fit using
some higher level IDL functions ?
Thanks in advance
|
|
|
Current Time: Sat Oct 18 08:06:43 PDT 2025
Total time taken to generate the page: 0.72334 seconds