MCPcopy
hub / github.com/microsoft/SandDance / visitPoints

Function visitPoints

docs/app/js/sanddance-app.js:119660–119667  ·  view source on GitHub ↗
(data, x, y, callback)

Source from the content-addressed store, hash-verified

119658 ];
119659}
119660function visitPoints(data, x, y, callback) {
119661 let i = -1, u, v;
119662 for (const d of data){
119663 u = x(d);
119664 v = y(d);
119665 if (u != null && (u = +u) >= u && v != null && (v = +v) >= v) callback(u, v, ++i);
119666 }
119667}
119668// License: https://github.com/HarryStevens/d3-regression/blob/master/LICENSE
119669function rSquared(data, x, y, uY, predict) {
119670 let SSE = 0, SST = 0;

Callers 5

rSquaredFunction · 0.70
linearFunction · 0.70
logFunction · 0.70
expFunction · 0.70
powFunction · 0.70

Calls 3

xFunction · 0.70
yFunction · 0.70
callbackFunction · 0.70

Tested by

no test coverage detected