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

Function random_poisson

numpy/random/src/distributions/distributions.c:596–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596RAND_INT_TYPE random_poisson(bitgen_t *bitgen_state, double lam) {
597 if (lam >= 10) {
598 return random_poisson_ptrs(bitgen_state, lam);
599 } else if (lam == 0) {
600 return 0;
601 } else {
602 return random_poisson_mult(bitgen_state, lam);
603 }
604}
605
606RAND_INT_TYPE random_negative_binomial(bitgen_t *bitgen_state, double n,
607 double p) {

Callers 5

legacy_negative_binomialFunction · 0.85
legacy_random_poissonFunction · 0.85
random_negative_binomialFunction · 0.85

Calls 2

random_poisson_ptrsFunction · 0.85
random_poisson_multFunction · 0.85

Tested by

no test coverage detected