| 177 | } |
| 178 | |
| 179 | int64_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 | |
| 184 | double legacy_standard_cauchy(aug_bitgen_t *aug_state) { |
| 185 | return legacy_gauss(aug_state) / legacy_gauss(aug_state); |
nothing calls this directly
no test coverage detected