Re: Sine Wave Curve Fit Question

2008-01-31 Thread Paul Rubin
Helmut Jarausch <[EMAIL PROTECTED]> writes: > You're right: standard Python's math library missing the function arctan2. It's math.atan2 . -- http://mail.python.org/mailman/listinfo/python-list

Re: Sine Wave Curve Fit Question

2008-01-31 Thread Helmut Jarausch
Mikael Olofsson wrote: > Helmut Jarausch wrote: >> Your model is A*sin(omega*t+alpha) where A and alpha are sought. >> Let T=(t_1,...,t_N)' and Y=(y_1,..,y_N)' your measurements (t_i,y_i) >> ( ' denotes transposition ) >> >> First, A*sin(omega*t+alpha) = >> A*cos(alpha)*sin(omega*t) + A*sin(

Re: Sine Wave Curve Fit Question

2008-01-31 Thread Mikael Olofsson
Helmut Jarausch wrote: > Your model is A*sin(omega*t+alpha) where A and alpha are sought. > Let T=(t_1,...,t_N)' and Y=(y_1,..,y_N)' your measurements (t_i,y_i) > ( ' denotes transposition ) > > First, A*sin(omega*t+alpha) = > A*cos(alpha)*sin(omega*t) + A*sin(alpha)*cos(omega*t) = > B*si

Re: Sine Wave Curve Fit Question

2008-01-30 Thread Iain Mackay
Thanks folks - I'll have a think about both of these options. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sine Wave Curve Fit Question

2008-01-30 Thread Helmut Jarausch
Iain Mackay wrote: > Python Folks > > I'm a newbie to Python and am looking for a library / function that can help > me fit a 1D data vector to a sine wave. I know the frequency of the wave, > so its really only phase and amplitude information I need. > > I can't find anything in the most wi

Re: Sine Wave Curve Fit Question

2008-01-30 Thread marek . rocki
Iain Mackay napisal(a): > Python Folks > > I'm a newbie to Python and am looking for a library / function that can help > me fit a 1D data vector to a sine wave. I know the frequency of the wave, > so its really only phase and amplitude information I need. > > I can't find anything in the most w

Sine Wave Curve Fit Question

2008-01-30 Thread Iain Mackay
Python Folks I'm a newbie to Python and am looking for a library / function that can help me fit a 1D data vector to a sine wave. I know the frequency of the wave, so its really only phase and amplitude information I need. I can't find anything in the most widely known libraries (they seem t