Module
Data.TimeSeries
- Package
- purescript-timeseries
- Repository
- carldata/purescript-timeseries
#fromDataPoints Source
fromDataPoints :: forall a. Array (DataPoint a) -> Series a
Create 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 a
Create series from values. Index will be based on Timestamp starting from 0
#resolution Source
resolution :: forall a. Series a -> Number
Get distance between points in this series
#rollingWindow Source
rollingWindow :: forall b a. Int -> (Array a -> b) -> Series a -> Series b
Apply function to the rolling window and create new Series.
Value is put at the last element of the window