import { quantileRankSorted } from "https://deno.land/x/simplestatistics@v7.7.5/index.js";
This function returns the quantile in which one would find the given value in the given array. With a sorted array, leveraging binary search, we can find this information in logarithmic time.