Module
Data.TimeSeries
- Package
- purescript-timeseries
- Repository
- carldata/purescript-timeseries
#fromDataPoints Source
fromDataPoints :: forall a. Array (DataPoint a) -> Series aCreate series from DataPoints.
#toDataPoints Source
toDataPoints :: forall a. Series a -> Array (DataPoint a)Convert series to the array of data points
#fromValues Source
fromValues :: forall a. Array a -> Series aCreate series from values. Index will be based on Timestamp starting from 0
#resolution Source
resolution :: forall a. Series a -> NumberGet distance between points in this series
#rollingWindow Source
rollingWindow :: forall b a. Int -> (Array a -> b) -> Series a -> Series bApply function to the rolling window and create new Series.
Value is put at the last element of the window