|
34 | 34 |
|
35 | 35 | # name -> (MKLRandomState method, positional arguments before ``size``) |
36 | 36 | _DISCRETE = { |
37 | | - # MKL's BTPE binomial method uses acceptance/rejection only when |
38 | | - # n * min(p, 1 - p) >= 30 |
| 37 | + # MKL's BTPE binomial method may select a different internal algorithm |
| 38 | + # when n * min(p, 1 - p) >= 30; these parameters exercise both regimes |
39 | 39 | "binomial": ("binomial", (10, 0.5)), |
40 | 40 | "binomial_large_n": ("binomial", (1000, 0.3)), |
41 | 41 | "negative_binomial": ("negative_binomial", (5, 0.5)), |
42 | 42 | # default method (POISNORM); per-method timings are in bench_methods.py |
43 | 43 | "poisson": ("poisson", (10.0,)), |
44 | 44 | "geometric": ("geometric", (0.3,)), |
45 | | - # MKL's H2PE hypergeometric method uses acceptance/rejection for a large |
46 | | - # mode |
| 45 | + # MKL's H2PE hypergeometric method may select a different internal |
| 46 | + # algorithm for a large mode; these parameters exercise both regimes |
47 | 47 | "hypergeometric": ("hypergeometric", (10, 20, 5)), |
48 | 48 | "hypergeometric_large_mode": ("hypergeometric", (1000, 2000, 500)), |
49 | 49 | "zipf": ("zipf", (2.0,)), |
|
0 commit comments