MCPcopy Create free account
hub / github.com/bighuang624/Algorithms-notes / exp

Method exp

code/algs4/StdRandom.java:382–386  ·  view source on GitHub ↗

Returns a random real number from an exponential distribution with rate λ. @param lambda the rate of the exponential distribution @return a random real number from an exponential distribution with rate lambda @throws IllegalArgumentException unless lambda > 0.0

(double lambda)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

poissonMethod · 0.80

Calls 1

uniformMethod · 0.95

Tested by

no test coverage detected