130 Commits

Author SHA1 Message Date
Diggory Hardy
92e07018e0 rustfmt: expression spacing (on the line) 2020-01-02 15:46:14 +00:00
Diggory Hardy
0f9500b725 rustfmt: function parameters 2020-01-02 15:46:14 +00:00
Diggory Hardy
1b3bcce9be rustfmt: closures 2020-01-02 15:46:14 +00:00
Diggory Hardy
363571540f rustfmt: method chaining 2020-01-02 15:46:14 +00:00
Diggory Hardy
4f1f0fce67 rustfmt: struct literals, if/for blocks 2020-01-02 15:46:14 +00:00
Diggory Hardy
477b47058f rustfmt: spacing, new-lines, trailing commas/semicolon 2020-01-02 15:46:14 +00:00
Diggory Hardy
ccb64dc0a0 rustfmt: attributes 2020-01-02 15:46:14 +00:00
Diggory Hardy
88aa915c66 rustfmt: use, mod statements and initial attributes 2020-01-02 15:46:14 +00:00
Diggory Hardy
2fc64ed429 Remove old RNG crates from benchmarks
Note: the init benches now use a different master RNG;
this appears to have little affect on results.
2019-09-20 16:47:46 +01:00
Vinzent Steinberg
ee6f33453e WeightedIndex: Clean up benchmark 2019-08-15 18:24:00 +02:00
Vinzent Steinberg
7351358e5a Benchmark creation vs. modification of WeightedIndex 2019-08-14 15:57:14 +02:00
Diggory Hardy
2dca83d861 Add inlining for StepRng 2019-06-27 10:01:12 +01:00
Vinzent Steinberg
8521f85b31 Fix benchmarks 2019-06-21 17:58:05 +02:00
Vinzent Steinberg
75d639b78d rand: Use Rust 2018 2019-06-12 17:02:36 +02:00
Diggory Hardy
18d55845ea rand_pcg: add Pcg64 RNG
Note: benchmarks now show different results to mentioned
for fill_bytes impl, possibly because of #[inline] changes
2019-06-11 13:29:21 +01:00
Diggory Hardy
01b1bf8958 Move distributions benchmark to rand_distr
This avoids a circular dependency between rand and rand_distr
2019-06-11 10:42:41 +01:00
Diggory Hardy
076fd1208e Benchmarks: enable usage without feature flags 2019-06-11 10:32:42 +01:00
Diggory Hardy
33bd4040f6 Replace StdRng algorithm with ChaCha20 and adjust reseeding threshold 2019-06-03 15:39:21 +01:00
Diggory Hardy
25896a7533 Add benchmarks for uniform usize samples
The usize64 bench is noticably slower than the others,
perhaps due to use of rejection sampling.
2019-06-03 14:25:37 +01:00
Vinzent Steinberg
c6bce2cec3 Make Bernoulli::new return a Result
Fixes #799.
2019-05-22 17:36:23 +02:00
Vinzent Steinberg
ec2f006d3c Fix benchmarks 2019-05-16 13:55:51 +02:00
Diggory Hardy
29da6f9061 Add benchmarks for new chacha variants 2019-04-30 21:14:42 +01:00
Diggory Hardy
1f7af60419
Merge pull request #782 from dhardy/distr
Add PERT distribution
2019-04-23 15:14:01 +01:00
Diggory Hardy
f8a7b42dd4 rand_distr::Triangular: tweaks, bench and tests 2019-04-22 17:49:31 +01:00
Diggory Hardy
232c634c61 Benches: fix warnings and move Binomial benches to appropriate suite 2019-04-22 11:43:48 +01:00
Diggory Hardy
6dc6c4932b
Merge pull request #770 from vks/distr-result
rand_distr: Use `Result` instead of panics
2019-04-20 09:23:43 +01:00
Vinzent Steinberg
10474c9c4d Fix benchmarks 2019-04-15 15:24:10 +02:00
Vinzent Steinberg
a2754c78c8 Fix distribution benchmarks 2019-04-09 15:31:29 +02:00
Diggory Hardy
b231ac20cc Remove dependence on rand_jitter
This is a breaking change for anyone using rngs::JitterRng;
such users should switch to rand_jitter::JitterRng.
2019-04-03 15:23:17 +01:00
Diggory Hardy
8cfe2101c5 Simplify and deprecate EntropyRng 2019-04-03 15:23:17 +01:00
Diggory Hardy
57ec955dcc Fix benchmark test 2019-03-29 07:46:05 +00:00
Diggory Hardy
aabc59671e
Merge pull request #692 from zroug/master
Add an implementation of alias method for weighted indices
2019-03-27 08:59:14 +00:00
zroug
5b2934122f Reorganized distributions::weighted module 2019-03-06 17:49:50 +01:00
Vinzent Steinberg
6323d2951e Binomial: Add benchmark for small n * p
Our previous implementation was very slow (#734). The benchmarks makes
sure we won't have such regressions in the future.
2019-02-26 18:11:28 +01:00
zroug
f392fb7708 Made AliasMethodWeightedIndex generic 2019-02-23 13:25:30 +01:00
zroug
1feb633179 Added tests for AliasMethodWeightedIndex 2019-02-23 13:25:30 +01:00
Diggory Hardy
23f0a5139b Implement Standard support for NonZero* types (Rustc ≥ 1.28) 2019-02-15 10:45:51 +00:00
Diggory Hardy
5a67e325ae
Merge pull request #642 from vks/xoshiro
Import xoshiro crate
2018-12-21 10:29:13 +00:00
Diggory Hardy
2573e83ffc Add benchmarks of unit circle and sphere surface sampling 2018-12-12 13:00:02 +00:00
Vinzent Steinberg
1e0dffdf3e Add more benchmarks for rand_xoshiro RNGs 2018-11-21 13:19:58 +01:00
Vinzent Steinberg
e468d4e5c4 Add xoshiro benchmarks
* This replaces the old xoshiro benchmarks.
* rand_xoshiro now uses the correct version of rand_core.
2018-11-14 14:06:41 +01:00
Diggory Hardy
06dd14dc3a Rename rand_hc128 crate to rand_hc
Closes #617
2018-10-29 09:37:06 +00:00
Diggory Hardy
26c2491623 Add PCG to benchmarks and PRNG module documentation 2018-10-15 12:41:48 +01:00
Vinzent Steinberg
37a69fbd95 Move ChaCha and HC128 RNG to dedicated crates 2018-09-27 11:43:55 +02:00
Diggory Hardy
00ff7fe9c9 Seq sample code: increase error bounds in test, simplify sample code 2018-09-23 10:12:18 +01:00
Diggory Hardy
6bb07b75d1 Remove remnants of i128_support
This feature flag is obsolete and was already removed from
most of the code; a few references were missed.
2018-09-12 08:58:00 +01:00
Diggory Hardy
9ad46688e6
Merge pull request #591 from dhardy/copy
Add COPYRIGHT file and update copyright & licence notices
2018-09-10 19:05:22 +01:00
Diggory Hardy
82fa5733de
Merge pull request #593 from sicking/iterchoose
Use Iterator::size_hint() to speed up IteratorRandom::choose
2018-08-24 09:13:19 +01:00
Jonas Sicking
be1158de0a Use Iterator::size_hint() to speed up IteratorRandom::choose 2018-08-21 03:12:00 -07:00
Diggory Hardy
d291f71fd4 Add COPYRIGHT file and update copyright & licence notices 2018-08-16 15:38:40 +01:00