Exemplo n.º 1
0
 public static INullableQuerySerie <T> GroupByMinutes <T>(this IQuerySerie <T> serie, int minutes,
                                                          Func <IQuerySerie <T>, T?> aggregationFunc) where T : struct
 {
     return(serie.Group(g => g.ByTime.Minutes(minutes).Aggregate(aggregationFunc)));
 }
Exemplo n.º 2
0
 public static INullableQuerySerie <T> GroupByDays <T>(this IQuerySerie <T> serie, int days,
                                                       Func <IQuerySerie <T>, T?> aggregationFunc) where T : struct
 {
     return(serie.Group(g => g.ByTime.Days(days).Aggregate(aggregationFunc)));
 }
Exemplo n.º 3
0
 public static INullableQuerySerie <T> GroupBy <T>(this IQuerySerie <T> serie, string expression,
                                                   Func <IQuerySerie <T>, T?> aggregationFunc) where T : struct
 {
     return(serie.Group(g => g.ByTime.Expression(expression).Aggregate(aggregationFunc)));
 }