import * as simplestatistics from "https://deno.land/x/simplestatistics@v7.8.0/src/quantile_rank_sorted.js"; FunctionsfdefaultThis 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.