import { default } from "https://deno.land/x/simplestatistic@v7.7.1/src/quantile_sorted.js";
This is the internal implementation of quantiles: when you know that the order is sorted, you don't need to re-sort it, and the computations are faster.
Examples
quantileSorted([3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20], 0.5); // => 9
quantileSorted([3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20], 0.5); // => 9