TDIGEST.TRIMMED_MEAN key low_cut_percentile high_cut_percentile
Available in: Redis Stack
Time complexity: O(n)
Get the mean value from the sketch, excluding values outside the low and high cutoff percentiles.
Parameters:
- key: The name of the sketch.
- low_cut_percentile: Exclude values lower than this percentile.
- high_cut_percentile: Exclude values higher than this percentile.
Return
Simple string reply of mean value from the sketch. Will return DBL_MAX if the sketch is empty.
Examples
redis> TDIGEST.TRIMMED_MEAN t-digest 0.1 0.9
"9.500001"