Time series
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Marcelo_Figueiredo
Posted On:   Tuesday, October 30, 2001 05:12 AM

Is there a pattern for Time Series?
If not, what would be the best design pattern to represent time series?
Thanks

Re: Time series

Posted By:   John_Austin  
Posted On:   Monday, November 26, 2001 09:29 PM

I don't think you need anything fancy to model a time series. Just use a Vector or an Array. Objects in a time series are typically simple scalar values that can be modelled as simple types like real or complex numbers. Different variates in the series are never of different types and you won't need to model these items as fancy objects.


Even in the case of complex variables, you will model the elements of the series with a very simple class. Individual elements might not need to be mutable and the class can be final so you avoid some run-time type identification.


Consider finding a specialized system that has all your time-series programming all ready done. Why re-invent the wheel ?

Re: Time series

Posted By:   Anonymous  
Posted On:   Sunday, November 4, 2001 01:17 PM

There's a very interesting article on Martin Fowler's web site entitled "Patterns for Things that Change Over Time". This should be of help.

http://martinfowler.com/ap2/timeNarrative.html

Abstract (from the link):

Summarizes various patterns that you can use to answer questions about the state of an information in the past. These include questions of the form "what was Martin's address on 1 Jul 1999" and "what did we thing Martin's address was on 1 Jul 1999 when we sent him a bill on 12 Aug 1999".

Best, WILL

About | Sitemap | Contact