MCPcopy Index your code
hub / github.com/plotly/plotly.js / computeUpperFence

Function computeUpperFence

src/traces/box/calc.js:420–429  ·  view source on GitHub ↗
(cdi, boxVals, N)

Source from the content-addressed store, hash-verified

418
419// last point above 1.5 * IQR
420function computeUpperFence(cdi, boxVals, N) {
421 if(N === 0) return cdi.q3;
422 return Math.max(
423 cdi.q3,
424 boxVals[Math.max(
425 Lib.findBin(2.5 * cdi.q3 - 1.5 * cdi.q1, boxVals),
426 0
427 )]
428 );
429}
430
431// 3 IQR below (don't clip to max/min,
432// this is only for discriminating suspected & far outliers)

Callers 1

calc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…