bottomk

Input Stack:
k: Int
stat: String
TimeSeriesExpr
Output Stack:
TimeSeriesExpr
 
 

Since: 1.7

Restrict the output for a grouped expression to the k time series with the smallest value for the specified summary statistic. Example of usage:

BeforeAfter
name,sps,:eq,
(,nf.cluster,),:by
name,sps,:eq,
(,nf.cluster,),:by,
max,2,:bottomk

In some cases it can be useful to see an aggregate summary of the other time series that were not part of the bottom set. This can be accomplished using the :bottomk-others-$(aggr) operators. For more details see: