comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Least Square
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Least Square [message #9722] Thu, 07 August 1997 00:00 Go to next message
rjh55 is currently offline  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 Go to previous message
David Foster is currently offline  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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Arg_Present, XSurface, and Other Assorted Blunders
Next Topic: IDL 5.0.2

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 16:15:05 PDT 2025

Total time taken to generate the page: 0.48173 seconds