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

Function random_power

numpy/random/src/distributions/distributions.c:483–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481}
482
483double random_power(bitgen_t *bitgen_state, double a) {
484 return pow(-expm1(-random_standard_exponential(bitgen_state)), 1. / a);
485}
486
487double random_laplace(bitgen_t *bitgen_state, double loc, double scale) {
488 double U;

Callers

nothing calls this directly

Calls 3

powFunction · 0.85
expm1Function · 0.85

Tested by

no test coverage detected