Vinzent Steinberg
1145ba0200
Update CHANGELOG.md
2021-07-13 15:23:39 +02:00
Patrick Chieppe
fb6390f9d3
Fix build on non-32/64-bit architectures ( #1144 )
...
* Impl WideningMultiply for 16-bit pointers
* Add AVR CI test job
2021-07-13 15:18:57 +02:00
Diggory Hardy
52407e7ccc
Merge pull request #1141 from dhardy/work
...
Add serde1 feature for rand_distr
2021-07-09 13:27:18 +01:00
Diggory Hardy
af751dfeac
Merge branch 'master' into work
2021-07-09 13:27:09 +01:00
Diggory Hardy
564a504d59
Update changelog
2021-07-09 09:33:10 +01:00
Vinzent Steinberg
c60b7cd21b
Remove special cases for emscripten
...
Because emscripten supports 128-bit integers now, we no longer have to
add special cases for it. In particular, we can now use ChaCha12 on all
platforms.
2021-07-08 16:29:02 +02:00
Diggory Hardy
0e515d7adc
Update rand_distr readme
2021-07-08 15:16:53 +01:00
Diggory Hardy
9bd8017e20
impl serde for rand_distr::WeightedAliasIndex; fix bounds for Uniform
2021-07-08 15:10:46 +01:00
Diggory Hardy
b9f0c54a2c
rand_distr: derive serde support (easy cases)
2021-07-08 15:10:39 +01:00
Diggory Hardy
b27c38372d
rand_distr: add serde1 feature
2021-07-08 15:10:31 +01:00
Vinzent Steinberg
14d55f8664
Group Zeta
and Zipf
with rate-related distributions
...
Arguably, the Zipf distribution is related to the Pareto distribution
[1].
[1] https://en.wikipedia.org/wiki/Zipf's_law#Related_laws
2021-06-16 02:53:10 +02:00
Vinzent Steinberg
3cccc64a46
Zeta: Inline distribution methods
2021-06-16 02:50:58 +02:00
Vinzent Steinberg
ccaa4de990
Zipf: Update benchmarks
2021-06-16 02:49:18 +02:00
Vinzent Steinberg
f514fd68ba
Zipf: Simplify calculation of ratio
...
This should improve performance slightly.
2021-06-16 02:40:36 +02:00
Vinzent Steinberg
139e898f06
Zipf: Simplify trait bounds
2021-06-16 02:40:35 +02:00
Vinzent Steinberg
4d67af2604
Zipf: Mention that rounding may occur
2021-06-16 02:40:35 +02:00
Vinzent Steinberg
6270248f59
Zipf: Fix s = 1
special case
...
Also inline the distribution methods.
2021-06-16 02:40:35 +02:00
Vinzent Steinberg
a07b3218fa
rand_distr: Add Zipf (not zeta) distribution
2021-06-16 02:40:33 +02:00
Vinzent Steinberg
b06c2f61af
Don't claim Zeta
follows Zipf's law
...
It seems like this is not true [1], at least not with the same exponent.
[1] https://en.wikipedia.org/wiki/Zeta_distribution
2021-06-16 02:40:02 +02:00
Vinzent Steinberg
6c27184f22
Rename Zipf
to Zeta
...
This follows the naming convention on Wikipedia.
2021-06-16 02:39:59 +02:00
Vinzent Steinberg
c2ecf1babb
Fix value stability tests
2021-06-16 02:39:32 +02:00
Vinzent Steinberg
718e71b826
Zipf: Add benchmark
2021-06-16 02:39:32 +02:00
Vinzent Steinberg
a57247d9a2
Zipf: Use OpenClosed01
2021-06-16 02:39:32 +02:00
Vinzent Steinberg
1e1e768f0e
Update changelog
2021-06-16 02:39:29 +02:00
Vinzent Steinberg
0360aa9c75
rand_distr: Add Zipf distribution
2021-06-16 02:38:48 +02:00
Vinzent Steinberg
8a07c93e4a
Merge pull request #1138 from striezel-stash/fix-typos
...
fix some typos
2021-06-15 19:04:45 -03:00
Dirk Stolle
277e5b0e9d
fix some typos
2021-06-15 22:27:37 +02:00
Diggory Hardy
8792268dfe
Merge pull request #1137 from rust-random/work2
...
Prepare rand 0.8.4 release, core 0.6.3, distr 0.4.1, pcg 0.3.1, hc 0.3.1
2021-06-15 15:40:47 +01:00
Diggory Hardy
1bfc53d57f
Update changelogs and bump version numbers
2021-06-14 10:04:59 +01:00
Diggory Hardy
453431146d
Merge pull request #1133 from rust-random/work2
...
Add DistString trait
2021-06-14 09:24:49 +01:00
Diggory Hardy
81f1af8f4f
Correct usage of reserve
2021-06-10 08:37:03 +01:00
Diggory Hardy
fa17d1c1a2
Add comment to append_string for Standard
2021-06-10 08:35:44 +01:00
Diggory Hardy
b4c1d66409
Add DistString
2021-06-10 08:35:44 +01:00
Diggory Hardy
1947c899f7
Move Distribution trait and associates to sub-module
2021-06-10 08:35:44 +01:00
Diggory Hardy
98a0339f99
Merge pull request #1135 from dhardy/work
...
Prepare rand_chacha v0.3.1 release
2021-06-09 20:45:04 +01:00
Diggory Hardy
a7f8fb72d7
Prepare rand_chacha v0.3.1 release
2021-06-09 15:21:20 +01:00
Diggory Hardy
09d3df3119
Merge pull request #1130 from dhardy/work
...
serde for BlockRng, ReseedingRng and ReadRng
2021-06-07 19:54:44 +01:00
Diggory Hardy
d167dd25d2
Deprecate ReadRng
2021-06-07 17:50:34 +01:00
Diggory Hardy
e3bc4a1357
Do not impl serde for ReadRng or ReseedingRng
2021-06-07 17:50:03 +01:00
Diggory Hardy
66b163632e
Merge pull request #1132 from rust-random/readme-wasm-note
...
README: add note regarding wasm32-unknown-unknown
2021-05-31 19:57:03 +01:00
Diggory Hardy
d9c6a76048
README: add note regarding wasm32-unknown-unknown
...
Addresses #1110 and #1131 .
2021-05-31 17:43:57 +01:00
Diggory Hardy
4726d328d6
Update minimum version of packed_simd_2
2021-05-27 11:00:13 +01:00
Diggory Hardy
f6bbfcfa89
serde for BlockRng, ReseedingRng and ReadRng
2021-05-27 10:17:01 +01:00
Vinzent Steinberg
2732f2d6a8
Merge pull request #1116 from vks/criterion
...
rand_distr: Port benchmarks to Criterion
2021-05-24 22:42:31 -03:00
Vinzent Steinberg
a6623ccbf7
rand_distr: Port benchmarks to Criterion
...
- The benchmarks are now living in their own crate. Therefore, this does
not add any dev-dependencies to rand_distr.
- Instead of bytes per seconds, we now measure cycles per byte.
Refs #1039 .
2021-05-24 13:31:02 -03:00
Diggory Hardy
a97d94a0c8
Merge pull request #1129 from adamreichold/dist-map
...
Create a distribution by mapping the output of another one
2021-05-24 08:01:13 +01:00
Adam Reichold
e0e13d79c6
Create a distribution by mapping the output of another one
...
This is useful if consumers are to be given an opaque type implementing the
Distribution trait, but the output of the provided implementations needs
additional post processing, e.g. to attach compile time units of measurement.
2021-05-23 18:42:18 +02:00
Vinzent Steinberg
ea26d87379
Merge pull request #1124 from kazcw/chacha-serde
...
serde support for ChaCha
2021-05-22 01:32:08 -03:00
Vinzent Steinberg
d9a8e16f16
Merge pull request #1127 from jakevossen5/master
...
fixed broken link to sample_iter
2021-05-13 23:13:55 -03:00
Vinzent Steinberg
36234a511e
Merge pull request #1126 from vks/missing-copy
...
Add missing trait implementations
2021-05-13 23:12:16 -03:00