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

Function legacy_negative_binomial

numpy/random/src/legacy/legacy-distributions.c:179–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179int64_t legacy_negative_binomial(aug_bitgen_t *aug_state, double n, double p) {
180 double Y = legacy_gamma(aug_state, n, (1 - p) / p);
181 return (int64_t)random_poisson(aug_state->bit_generator, Y);
182}
183
184double legacy_standard_cauchy(aug_bitgen_t *aug_state) {
185 return legacy_gauss(aug_state) / legacy_gauss(aug_state);

Callers

nothing calls this directly

Calls 2

legacy_gammaFunction · 0.85
random_poissonFunction · 0.85

Tested by

no test coverage detected