TDIGEST.TRIMMED_MEAN
Syntax
TDIGEST.TRIMMED_MEAN key low_cut_quantile high_cut_quantile
- Available in:
- Redis Stack / Bloom 2.4.0
- Time complexity:
- O(n)
Estimate the mean value from the sketch, excluding observation values outside the low and high cutoff quantiles.
Parameters:
- 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
Return
Simple string reply estimation of the mean value. Will return "nan" if the sketch is empty.
Examples
redis> TDIGEST.TRIMMED_MEAN t-digest 0.1 0.9
"9.500001"
Feedback
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.