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

Function gu

resources/vega.min.js:5866–5877  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

5864 const du = { kde: ps, mixture: xs, normal: ds, lognormal: _s, uniform: Ms },
5865 pu = "function";
5866 function gu(t, e) {
5867 const n = t[pu];
5868 ut(du, n) || s("Unknown distribution function: " + n);
5869 const r = du[n]();
5870 for (const n in t)
5871 "field" === n
5872 ? r.data((t.from || e()).map(t[n]))
5873 : "distributions" === n
5874 ? r[n](t[n].map((t) => gu(t, e)))
5875 : typeof r[n] === pu && r[n](t[n]);
5876 return r;
5877 }
5878 function mu(t) {
5879 Xa.call(this, null, t);
5880 }

Callers 1

transformFunction · 0.70

Calls 5

eFunction · 0.85
dataMethod · 0.80
utFunction · 0.70
sFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected