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

Function cumulativeUniform

docs/app/js/sanddance-app.js:119586–119592  ·  view source on GitHub ↗
(value, min, max)

Source from the content-addressed store, hash-verified

119584 return value >= min && value <= max ? 1 / (max - min) : 0;
119585}
119586function cumulativeUniform(value, min, max) {
119587 if (max == null) {
119588 max = min == null ? 1 : min;
119589 min = 0;
119590 }
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;

Callers 1

uniformFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected