Re: Curve Fitting to timeseries using a set of 8 sine and cosine functions [message #89615 is a reply to message #89550] |
Fri, 31 October 2014 20:12   |
siumtesfai
Messages: 62 Registered: April 2013
|
Member |
|
|
On Saturday, October 25, 2014 1:47:17 AM UTC-4, siumt...@gmail.com wrote:
> I think you should try to be for specific to ask question here.
>
> Suppose I have a timeseries with the S size.
>
> I want to do nonlinear fitting to the timeseries using the following fourier series ( harmonic function)
>
> F(X) = ∑((Ancos(nπx/L)+Bnsin(nπx/L) ) , Where n = 1,2,3,4
>
> And I would find 8 coefficients such as An and Bn where n = 1,2,3,4
>
> That is.
>
> A1,A2,A3,A4
> B1,B2,B3,B4
>
> I have attempted to understand how it works mpfit by Craig and curvefit . Unfortunately, I did not because I am not IDL expert. So I posted this if anyone can help
>
>
> Best Wishes
>
>
> Thanks for you help
Hello again Yngvar and craig
My question is not resolved yet.
Craig: Why you did not suggest me to use your MPFIT code for fitting my model.
Yngvar: I think you have helped me enough and spend a lot of time on my problem. You seem to fed up of my question because I did not understand you.
Thanks
|
|
|