tslib-0.1.4: Time series library

Safe HaskellNone
LanguageHaskell2010

Data.TimeSeries.Class

Synopsis

Documentation

class (Vector (TSVector ts) (UTime, a), Vector (TSTimes ts) UTime, Vector (TSValues ts) a) => TSeries ts a where Source

The time series type class, currently with two implementations: Boxed and Unboxed (Storable).

The type variable ts denotes the specific time series type and a denotes the stored values.

Methods

fromVector :: TSVector ts (UTime, a) -> ts a Source

toVector :: ts a -> TSVector ts (UTime, a) Source

tsTimes :: ts a -> TSTimes ts UTime Source

tsValues :: ts a -> TSValues ts a Source

fromTimesValues :: TSTimes ts UTime -> TSValues ts a -> ts a Source

The two vectors are assumed to have the same length. This is not checked!

type family TSTimes ts :: * -> * Source

The vector type backing the UTimes in the time series.

type family TSVector ts :: * -> * Source

The hybrid-vector type backing the time series.

type family TSValues ts :: * -> * Source

The vector type backing the values in the time series.