Hello,

new to Python.
I would like to know if in SciPy there is a already a fucntion for the modelisation of a  near sinusoidal function. ie:
I have result from data acquisition from a pendulum and I obtain a text file with a matrix:
(t(sec), Theta(deg)).

 And I 'know' that is it is in the form of

Theta(t) = a+b*sin(co*t+phi)

And I want to give my matrix [t,Theta] to a Python Lib class and get in return the nearest parameters a,b,co and phi ( and if possible the error level ).

Does it exist in Python librairy or SciPy or Pynum???

Currently I am doing that job with Regressi.exe from evariste - it works ok. but I would like to enclose this calculation in a larger set of other analysis hence I would like to get a function doing that modelisation - regression from the curve to the function we believe right.

Thanx

Robert


Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.


Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses.