MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / normalize

Function normalize

baseball-node/utils.js:19–24  ·  view source on GitHub ↗
(value, min, max)

Source from the content-addressed store, hash-verified

17
18// Normalize a value between a given range.
19function normalize(value, min, max) {
20 if (min === undefined || max === undefined) {
21 return value;
22 }
23 return (value - min) / (max - min);
24}
25
26// Sleeps for a given ms.
27function sleep(ms) {

Callers 2

csvTransformFunction · 0.70
csvTransformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected