MCPcopy Index your code
hub / github.com/microsoft/SandDance / radius

Function radius

docs/app/js/sanddance-app.js:130784–130787  ·  view source on GitHub ↗
(bw, data, f)

Source from the content-addressed store, hash-verified

130782 };
130783}
130784function radius(bw, data, f) {
130785 const v = bw >= 0 ? bw : (0, _vegaStatistics.bandwidthNRD)(data, f);
130786 return Math.round((Math.sqrt(4 * v * v + 1) - 1) / 2);
130787}
130788function number(_) {
130789 return (0, _vegaUtil.isFunction)(_) ? _ : (0, _vegaUtil.constant)(+_);
130790} // Implementation adapted from d3/d3-contour. Thanks!

Callers 4

tesselateSphereFunction · 0.70
densityFunction · 0.70
initializeFunction · 0.70
radiusLeafFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected