TDIGEST.TRIMMED_MEAN key low_cut_quantile high_cut_quantile

Available in: Redis Stack

Time complexity: O(n)

Estimate the mean value from the sketch, excluding observation values outside the low and high cutoff quantiles.


  • key: The name of the sketch (a t-digest data structure)
  • low_cut_quantile: Exclude observation values lower than this quantile
  • high_cut_quantile: Exclude observation values higher than this quantile


Simple string reply estimation of the mean value. Will return DBL_MAX if the sketch is empty.


redis> TDIGEST.TRIMMED_MEAN t-digest 0.1 0.9