Skip to content

Commit

Permalink
Binomial: Add benchmark for small n * p
Browse files Browse the repository at this point in the history
Our previous implementation was very slow (#734). The benchmarks makes
sure we won't have such regressions in the future.
  • Loading branch information
vks committed Feb 26, 2019
1 parent 0a44f51 commit 6323d29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benches/distributions.rs
Expand Up @@ -203,6 +203,7 @@ distr_float!(distr_gamma_large_shape, f64, Gamma::new(10., 1.0));
distr_float!(distr_gamma_small_shape, f64, Gamma::new(0.1, 1.0));
distr_float!(distr_cauchy, f64, Cauchy::new(4.2, 6.9));
distr_int!(distr_binomial, u64, Binomial::new(20, 0.7));
distr_int!(distr_binomial_small, u64, Binomial::new(1000000, 1e-30));
distr_int!(distr_poisson, u64, Poisson::new(4.0));
distr!(distr_bernoulli, bool, Bernoulli::new(0.18));
distr_arr!(distr_circle, [f64; 2], UnitCircle::new());
Expand Down

0 comments on commit 6323d29

Please sign in to comment.