MCPcopy Create free account
hub / github.com/plotly/plotly.js / circumradius

Function circumradius

stackgl_modules/index.js:8851–8861  ·  view source on GitHub ↗
(points)

Source from the content-addressed store, hash-verified

8849var circumcenter = __webpack_require__(3628)
8850
8851function circumradius(points) {
8852 var center = circumcenter(points)
8853 var avgDist = 0.0
8854 for(var i=0; i<points.length; ++i) {
8855 var p = points[i]
8856 for(var j=0; j<center.length; ++j) {
8857 avgDist += Math.pow(p[j] - center[j], 2)
8858 }
8859 }
8860 return Math.sqrt(avgDist / points.length)
8861}
8862
8863/***/ }),
8864

Callers 1

alphaComplexFunction · 0.85

Calls 1

circumcenterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…