DataForecast-0.1.0.0: Type-safe data analysis.

Safe HaskellNone
LanguageHaskell2010

DataForecast.TimeSeries.Aggregate

Description

 

Synopsis

Documentation

computeTotal :: TimeSeries parts -> TimeSeries parts Source #

Compute the total for each SummaryData in the TimeSeries.

This propogates totals bottom up from the raw leaf data to the root and updating all SummaryData nodes along the way.

computeMean :: TimeSeries parts -> TimeSeries parts Source #

Compute the mean of the time series.

If there is any missing data in the timeseries then the mean is left as Nothing.