MCPcopy Create free account
hub / github.com/breck7/scroll / normalize

Function normalize

external/.d3.js:14957–14961  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

14955}
14956
14957function normalize(a, b) {
14958 return (b -= (a = +a))
14959 ? function(x) { return (x - a) / b; }
14960 : constants(isNaN(b) ? NaN : 0.5);
14961}
14962
14963function clamper(a, b) {
14964 var t;

Callers 2

bimapFunction · 0.85
polymapFunction · 0.85

Calls 1

constantsFunction · 0.85

Tested by

no test coverage detected