MCPcopy Create free account
hub / github.com/alignoth/alignoth / zp

Function zp

resources/vega.min.js:11500–11510  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

11498 return s;
11499 }
11500 function zp(t, e, n) {
11501 const r = Tp(t, e),
11502 i = t.base(),
11503 o = Math.log(i),
11504 a = Math.max(1, (i * e) / r.length),
11505 s = (t) => {
11506 let e = t / Math.pow(i, Math.round(Math.log(t) / o));
11507 return (e * i < i - 0.5 && (e *= i), e <= a);
11508 };
11509 return n ? r.filter(s) : s;
11510 }
11511 const Np = { [qd]: "quantiles", [Pd]: "thresholds", [jd]: "domain" },
11512 Op = { [qd]: "quantiles", [Pd]: "domain" };
11513 function Rp(t, e) {

Callers 2

BpFunction · 0.70
RpFunction · 0.70

Calls 1

TpFunction · 0.85

Tested by

no test coverage detected