MCPcopy
hub / github.com/tensorflow/playground / randUniform

Function randUniform

src/dataset.ts:213–215  ·  view source on GitHub ↗

* Returns a sample from a uniform [a, b] distribution. * Uses the seedrandom library as the random generator.

(a: number, b: number)

Source from the content-addressed store, hash-verified

211 * Uses the seedrandom library as the random generator.
212 */
213function randUniform(a: number, b: number) {
214 return Math.random() * (b - a) + a;
215}
216
217/**
218 * Samples from a normal distribution. Uses the seedrandom library as the

Callers 5

regressPlaneFunction · 0.85
regressGaussianFunction · 0.85
genSpiralFunction · 0.85
classifyCircleDataFunction · 0.85
classifyXORDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…