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

Home » Public Forums » archive » Curve Fitting to timeseries using a set of 8 sine and cosine functions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Curve Fitting to timeseries using a set of 8 sine and cosine functions [message #89562 is a reply to message #89558] Mon, 27 October 2014 06:03 Go to previous messageGo to previous message
Yngvar Larsen is currently offline  Yngvar Larsen
Messages: 134
Registered: January 2010
Senior Member
On Monday, 27 October 2014 02:45:50 UTC+1, siumt...@gmail.com wrote:
> Thanks for your discussion.
>
> oh also for your help
>
> One correction
>
> I am not developing a code that is written in 90'S . Actually, the models is widely used. I can provide you a paper about the model.

I'm not talking about the algorithm, which probably works fine for what it was intended for. I'm talking about the coding style.

1) Round parens array(i) for array indexing was deprecated in favor of array[i] around 1997. Don't expect this to work forever!

2) Uppercase GT/LT/LE/etc and keywords is typical for people using old editors without syntax highlighting. Syntax highlighting should be supported by any decent editor used today. This one is more a matter of taste though.

> I wonder that the models works for others using similar dataset but not for me. That is why I posted the question. Maybe there is better way dealing with the problem.

You still haven't told what you are trying to do or what your signal really is?

* Extract seasonal component? It turns out to be almost not present in the signal you posted.

or

*Fitting a harmonic series to your signal? You need to use more terms, with longer periods then 12 monts.

--
Yngvar
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Name of currently running program?
Next Topic: strange postscript error on certain IDL plots

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

Current Time: Wed Oct 08 20:13:24 PDT 2025

Total time taken to generate the page: 0.00194 seconds