335 Commits

Author SHA1 Message Date
Diggory Hardy
ccb64dc0a0 rustfmt: attributes 2020-01-02 15:46:14 +00:00
Diggory Hardy
7a181deca6 rustfmt: initial attributes, mod and use statements 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
kennytm
413fc4b8d0
Fix comments 2019-12-31 08:10:21 +08:00
kennytm
59df78ff8a
Merge branch 'master' into impl-error-for-distr-error 2019-12-28 14:44:36 +08:00
kennytm
68816c70ba
Update CHANGELOG. 2019-12-24 05:08:20 +08:00
kennytm
75b650245f
impl Error for rand_distr::*Error. 2019-12-23 01:28:20 +08:00
Diggory Hardy
e23c1cd069 Fix rand_distr bench: extern crate test 2019-12-21 10:50:54 +00:00
Diggory Hardy
2d24cefa9a Re-enable Cauchy value-stability test for f32 with tolerance 2019-09-20 16:36:58 +01:00
Diggory Hardy
d24afa71bb Disable value_stability test for 32-bit Cauchy distr
This appears not to be stable.
2019-09-19 11:30:55 +01:00
Diggory Hardy
f39915a496 rand_distr: work around tan func issue 2019-09-15 21:00:08 +01:00
Diggory Hardy
802ba8f7f5 rand_distr: add missing value_stability tests 2019-09-15 17:04:21 +01:00
Diggory Hardy
c394760017 Prepare rand_distr 0.2.2 2019-09-09 15:44:06 +02:00
Vinzent Steinberg
6d58f210ce Update dependency on average
The new version of `average` builds with minimal dep versions, so we no longer
need to depend on `conv 0.3.2` directly.
2019-09-02 14:48:21 +02:00
Diggory Hardy
94aa8fa9f1 Add testing of minimal versions
Closes #741

This seems to require a couple of hacks unfortunately.
2019-08-28 17:03:28 +01:00
newpavlov
e02b467eca license field fixes 2019-08-08 11:44:35 +03:00
Diggory Hardy
684aa8f8a6
Merge pull request #840 from vks/clippy
rand: Fix most clippy warnings
2019-07-25 15:58:53 +01:00
Diggory Hardy
e6309d8b55
Merge pull request #848 from Armavica/doc-link-fixes
Fix syntax of some links in documentation
2019-07-24 16:15:24 +01:00
Virgile Andreani
16893c8646 Fix syntax of some links in documentation 2019-07-23 18:59:02 +02:00
Jim Turner
e252f68cca Fix rand dependency version in rand_distr
`rand_distr` works with neither `rand` `0.5.6` (the latest version of
`0.5.*`) nor `0.6.5` (the latest version of `0.6.*`). In other words,
if I change the dependency to `rand = "0.5"` or `rand = "0.6"`, then
`cargo check` fails.
2019-07-23 10:27:44 -04:00
Vinzent Steinberg
6d79ebddd3 rand_distr: Fix remaining clippy warnings 2019-07-09 14:32:45 +02:00
Vinzent Steinberg
4607c32e06 Dirichlet: Prefer iterators over index variables 2019-07-09 14:30:36 +02:00
Vinzent Steinberg
a983df4c2a rand_distr: Disable some more noisy lints 2019-07-09 14:30:03 +02:00
Vinzent Steinberg
bab3a37e99 rand_distr: Disable noisy clippy lints 2019-07-09 14:25:16 +02:00
Vinzent Steinberg
13fa09c48e rand_distr: Prefer Into over as 2019-07-09 14:24:52 +02:00
Diggory Hardy
c780b8b435 Prepare rand_distr 0.2.1 2019-06-28 20:37:35 +01:00
Vinzent Steinberg
418ae59b2f rand_distr: Mark as compatible with rand 0.7 2019-06-27 15:47:44 +02:00
Diggory Hardy
b15e9ecb61
Merge pull request #828 from dhardy/doc
Seq module doc
2019-06-26 20:20:22 +01:00
Diggory Hardy
07361e7985 Fix doc links
Note: macro arg substitution does not appear to work within
documentation. Since the methods are on the same page,
these links are not important.
2019-06-26 16:15:31 +01:00
Vinzent Steinberg
a1c04e6936 rand_distr: Remove remaining use of extern crate 2019-06-12 17:04:52 +02:00
Diggory Hardy
8dd020c537 Prepare rand_pcg 0.2.0 release 2019-06-11 13:29:59 +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
d467bad53f rand_distr: enable use of rand 0.7 pre-release 2019-06-05 14:54:25 +01:00
Vinzent Steinberg
2fe750670b rand_distr: Prepare 0.1 and 0.2 release 2019-06-05 14:53:05 +02:00
Diggory Hardy
917d67b3d9 rand_distr: switch test RNG to Pcg32, update vectors and tweak Cauchy test
We want a value-stable RNG to avoid future vector changes
which means using something outside of Rand. Pcg32 is a good
fit and is easy to embed if that is ever necessary.
2019-06-03 14:59:18 +01:00
Diggory Hardy
4da77507b4 Merge branch 'master' into core_error 2019-05-28 10:30:44 +01:00
Diggory Hardy
73ef869e73
Merge pull request #798 from vks/unit-ball
Implement unit ball sampling and rename UnitSphereSurface -> UnitSphere
2019-05-17 12:39:47 +01:00
Vinzent Steinberg
a91b054981 Try to fix CI 2019-05-17 12:55:20 +02:00
Diggory Hardy
b61e61b3a7 Move from_entropy to SeedableRng and update RngCore doc 2019-05-16 17:13:07 +01:00
Diggory Hardy
c0b8722929
Merge pull request #795 from vks/fp-poisson
Poisson: Fix undefined behavior and support f64 output
2019-05-16 15:35:47 +01:00
Vinzent Steinberg
ec99801390 rand_distr: Inline Poisson sampling 2019-05-16 13:46:00 +02:00
Vinzent Steinberg
12443d470c Fix typo 2019-05-16 13:28:59 +02:00
Vinzent Steinberg
bd4e1a8dbf rand_distr: Fix UnitBall docs 2019-05-16 13:25:18 +02:00
Vinzent Steinberg
0b966ebff8 rand_distr: Fix uniformity tests 2019-05-16 11:56:54 +02:00
Vinzent Steinberg
68b95b83ef rand_distr: UnitSphereSurface -> UnitSphere 2019-05-16 11:50:24 +02:00
Vinzent Steinberg
aaa63afccd rand_distr: Implement UnitBall 2019-05-16 11:47:39 +02:00
Vinzent Steinberg
62a7a966a8 rand_distr: Implement UnitDisc 2019-05-16 11:44:12 +02:00
Diggory Hardy
4ef40b69e4
Merge pull request #794 from vks/update-binomial
rand_distr: Update binomial distribution implementation
2019-05-16 09:57:57 +01:00
Vinzent Steinberg
84d89a7c77 Always calculate log_gamma using f64 2019-05-15 17:20:42 +02:00
Vinzent Steinberg
15b9a39ee2 Address review feedback 2019-05-15 17:02:31 +02:00