MCPcopy
hub / github.com/apache/echarts / quantile

Function quantile

src/util/number.ts:682–688  ·  view source on GitHub ↗
(ascArr: number[], p: number)

Source from the content-addressed store, hash-verified

680 * @param ascArr
681 */
682export function quantile(ascArr: number[], p: number): number {
683 const H = (ascArr.length - 1) * p + 1;
684 const h = mathFloor(H);
685 const v = +ascArr[h - 1];
686 const e = H - h;
687 return e ? v + e * (ascArr[h] - v) : v;
688}
689
690type IntervalItem = {
691 interval: [number, number]

Callers 1

prepareBoxplotDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…