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 ?