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

Function random_weibull

numpy/random/src/distributions/distributions.c:476–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

474}
475
476double random_weibull(bitgen_t *bitgen_state, double a) {
477 if (a == 0.0) {
478 return 0.0;
479 }
480 return pow(random_standard_exponential(bitgen_state), 1. / a);
481}
482
483double random_power(bitgen_t *bitgen_state, double a) {
484 return pow(-expm1(-random_standard_exponential(bitgen_state)), 1. / a);

Callers

nothing calls this directly

Calls 2

powFunction · 0.85

Tested by

no test coverage detected