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

Function bandwidth

docs/app/js/sanddance-app.js:119451–119456  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

119449 } else return support;
119450 },
119451 bandwidth (_) {
119452 if (!arguments.length) return bandwidth;
119453 bandwidth = _;
119454 if (!bandwidth && support) bandwidth = estimateBandwidth(support);
119455 return dist;
119456 },
119457 sample () {
119458 return support[~~(random() * n)] + bandwidth * kernel.sample();
119459 },

Callers

nothing calls this directly

Calls 2

estimateBandwidthFunction · 0.70
getScaleFunction · 0.70

Tested by

no test coverage detected