temporal_aggregation function

Temporal aggregation of a time series