Computes the approximate median of all grouped values using a t-digest algorithm.
median(xs:list) -> floatDescription
Section titled “Description”The median function returns an approximate median of all numeric values in
xs, computed with a t-digest algorithm.
xs: list
Section titled “xs: list”The values to evaluate.
Examples
Section titled “Examples”Compute the median value
Section titled “Compute the median value”from {x: 1}, {x: 2}, {x: 3}, {x: 4}summarize median_value=median(x){median_value: 2.5}