initial pipeline for functions processing

This commit is contained in:
Alexander Zobnin
2021-05-24 17:46:49 +03:00
parent 7748508a5c
commit 3f7cabcd53
4 changed files with 48 additions and 2 deletions

View File

@@ -30,6 +30,10 @@ func (tsd *TimeSeriesData) Add(point TimePoint) *TimeSeriesData {
return tsd
}
func (ts TimeSeries) GroupBy(interval time.Duration, agg string) TimeSeries {
return ts
}
// Aligns point's time stamps according to provided interval.
func (ts TimeSeries) Align(interval time.Duration) TimeSeries {
if interval <= 0 || ts.Len() < 2 {