MCPcopy Create free account
hub / github.com/numpy/numpy / random_lognormal

Function random_lognormal

numpy/random/src/distributions/distributions.c:524–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524double random_lognormal(bitgen_t *bitgen_state, double mean, double sigma) {
525 return exp(random_normal(bitgen_state, mean, sigma));
526}
527
528double random_rayleigh(bitgen_t *bitgen_state, double mode) {
529 return mode * sqrt(2.0 * random_standard_exponential(bitgen_state));

Callers

nothing calls this directly

Calls 2

expFunction · 0.85
random_normalFunction · 0.85

Tested by

no test coverage detected