MCPcopy Create free account
hub / github.com/microsoft/SandDance / set1

Function set1

docs/app/js/sanddance-app.js:130996–130999  ·  view source on GitHub ↗
(t, vals)

Source from the content-addressed store, hash-verified

130994 if (this.value && !pulse.changed() && !_.modified()) return pulse.StopPropagation;
130995 var out = pulse.fork(pulse.NO_SOURCE | pulse.NO_FIELDS), source = pulse.materialize(pulse.SOURCE).source, groups = partition(source, _.groupby), names = (_.groupby || []).map((0, _vegaUtil.accessorName)), kde = params(density2D(), _), as = _.as || "grid", values = [];
130996 function set1(t, vals) {
130997 for(let i = 0; i < names.length; ++i)t[names[i]] = vals[i];
130998 return t;
130999 } // generate density raster grids
131000 values = groups.map((g)=>(0, _vegaDataflow.ingest)(set1({
131001 [as]: kde(g, _.counts)
131002 }, g.dims)));

Callers 1

transformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected