MCPcopy Create free account
hub / github.com/aistrate/AlgorithmsSedgewick / discrete

Method discrete

StdLib/StdRandom.java:205–215  ·  view source on GitHub ↗

Return a number from a discrete distribution: i with probability a[i].

(double[] a)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls 1

uniformMethod · 0.95

Tested by

no test coverage detected