Least Square [message #9722] |
Thu, 07 August 1997 00:00  |
rjh55
Messages: 5 Registered: April 1997
|
Junior Member |
|
|
Dear all,
I was windering if the following can be solced using IDL (V4)
Data:- Change in voltage against time
Result:- Sinusoidal wave
Is it possible to find the line of best fit, and thus derive its
equation using IDL?
The form of the equation is as follows:-
y = a * sin (b*x + c)
Many thanks in advance
Richard
|
|
|
Re: Least Square [message #9765 is a reply to message #9722] |
Tue, 12 August 1997 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
R.J. Hall wrote:
>
> Dear all,
>
> I was windering if the following can be solced using IDL (V4)
>
> Data:- Change in voltage against time
>
> Result:- Sinusoidal wave
>
> Is it possible to find the line of best fit, and thus derive its
> equation using IDL?
>
> The form of the equation is as follows:-
>
> y = a * sin (b*x + c)
>
Richard -
Check out the CURVEFIT procedure, or maybe one of the "See Also"
routines at the end of the on-line help for this function.
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2200
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|