MCPcopy Create free account
hub / github.com/microsoft/SandDance / quantileUniform

Function quantileUniform

docs/app/js/sanddance-app.js:119593–119599  ·  view source on GitHub ↗
(p, min, max)

Source from the content-addressed store, hash-verified

119591 return value < min ? 0 : value > max ? 1 : (value - min) / (max - min);
119592}
119593function quantileUniform(p, min, max) {
119594 if (max == null) {
119595 max = min == null ? 1 : min;
119596 min = 0;
119597 }
119598 return p >= 0 && p <= 1 ? min + p * (max - min) : NaN;
119599}
119600function uniform(min, max) {
119601 let a, b;
119602 const dist = {

Callers 1

uniformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected