Diggory Hardy
8225d948b1
Rng renames: gen_ → random_ ( #1505 )
2024-10-16 14:45:36 +01:00
Benjamin Lieser
9d57b87e27
Weibull doc: add PDF and warning against small k ( #1509 )
2024-10-16 11:11:24 +01:00
Artyom Pavlov
695fc9a5f5
Fix new Clippy lints ( #1511 )
2024-10-16 02:54:28 +03:00
Diggory Hardy
f5185d91fa
thread_rng() → rand::rng() ( #1506 )
...
- Rename `rand::thread_rng()` → `rand::rng()`
- Remove `thread_rng()` and `random()` from the prelude
2024-10-11 08:51:21 +01:00
Benjamin Lieser
9c2787de73
Cdf testing with Kolmogorov Smirnov ( #1494 )
2024-10-08 09:57:47 +01:00
Benjamin Lieser
bc3341185e
Make sure BTPE is not entered when np < 10 ( #1484 )
2024-10-03 20:18:56 +01:00
Diggory Hardy
66b11eb17b
Rename gen_iter → random_iter, misc.. ( #1500 )
...
This extracts the non-inherent-methods stuff from #1492 .
2024-10-01 14:59:11 +01:00
Benjamin Lieser
e2092e9251
Poisson u64 sampling ( #1498 )
...
This addresses https://github.com/rust-random/rand/issues/1497 by adding
`Distribution<u64>`
It also solves https://github.com/rust-random/rand/issues/1312 by not
allowing `lambda` bigger than `1.844e19` (this also makes them always
fit into `u64`)
2024-10-01 14:27:39 +01:00
Diggory Hardy
f2638201ff
Poisson: split Knuth/Rejection methods ( #1493 )
2024-09-23 18:02:25 +01:00
Diggory Hardy
ef052ec539
No usize except uniform ( #1487 )
...
- Add UniformUsize
- Support ..end and ..=ub range syntax for unsigned ints
2024-09-09 08:33:43 +01:00
Diggory Hardy
79f1b0ffdb
Document known issues: #1378 , #1312 , #1476 .
2024-08-12 12:16:08 +01:00
Bruce Mitchener
f7bbccaedf
Rename serde1
feature to serde
. ( #1477 )
2024-07-26 08:48:53 +01:00
Diggory Hardy
2d5948d264
rand::distributions -> distr; split uniform module ( #1470 )
2024-07-23 14:14:11 +01:00
Diggory Hardy
605476c4e4
Portability fixes ( #1469 )
...
- Fix portability of `choose_multiple_array`
- Fix portability of `rand::distributions::Slice`
2024-07-23 13:50:31 +01:00
Diggory Hardy
2584f48ace
Fix pert for mode approx eq mean; use builder pattern ( #1452 )
...
- Fix #1311 (mode close to mean)
- Use a builder pattern, allowing specification via mode OR mean
2024-07-16 09:04:49 +01:00
Diggory Hardy
d17ce4e0a1
rand_distr: split gamma module ( #1464 )
...
Move Beta, Student's t, Fisher-F, Chi-squared and Zeta distributions
to their own modules.
2024-07-11 14:50:22 +01:00
Michael Dyer
763dbc5bbb
rand_distr
: Rename Zeta parameter from a
to s
(#1466 )
2024-07-10 20:05:50 +01:00
Michael Dyer
17746a1ace
Add distribution plots to rand_distr
documentation ( #1434 )
2024-07-08 20:16:19 +02:00
Artyom Pavlov
ef75e56cf5
Fix Nightly Clippy lints ( #1457 )
2024-05-25 17:17:43 +03:00
Diggory Hardy
ba7f5155d3
Revise RNG docs; enable small_rng by default ( #1455 )
2024-05-23 14:12:08 +01:00
Artyom Pavlov
890ad8b68b
Rename doc_cfg
to docsrs
and use doc_auto_cfg
( #1450 )
2024-05-10 13:46:26 +03:00
Artyom Pavlov
1b762b2867
Apply rustfmt and fix Clippy warnings ( #1448 )
2024-05-09 07:50:08 +01:00
Joe Richey
e93776960e
Update Panic documentation and #[track_caller] ( #1447 )
...
This is stuff I missed in #1442
Signed-off-by: Joe Richey <joerichey@google.com>
Co-authored-by: Diggory Hardy <git@dhardy.name>
2024-05-08 14:30:08 +01:00
Artyom Pavlov
fba5521f0f
Add TryRngCore
and TryCryptoRng
traits ( #1424 )
...
This reworks fallibility, replacing the fixed `Error` type.
2024-05-08 14:10:32 +01:00
Makro
b10172f2cf
Make fn WeightedTreeIndex::try_sample public
2024-05-07 11:25:40 +01:00
Diggory Hardy
e55b1f6ee5
Merge rand_distr/benches into benches
2024-04-27 08:59:58 +01:00
Diggory Hardy
eae3228c63
rand_distr/std_math: add note regarding other dependents ( #1421 )
2024-04-10 15:45:58 +01:00
Michael Dyer
bca078e929
Optimize imports ( #1430 )
2024-04-05 16:04:30 +01:00
dependabot[bot]
05189751b5
Update average requirement from 0.14 to 0.15 ( #1426 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 15:45:29 +01:00
Diggory Hardy
0e626c7436
Cleaner README, remove MSRV shields ( #1417 )
2024-03-25 14:56:17 +00:00
Diggory Hardy
2eaf8545d4
Bump the MSRV to 1.61.0 ( #1416 )
2024-03-22 12:33:33 +00:00
Diggory Hardy
1015e709da
Prepare 0.9.0-alpha.1 ( #1413 )
2024-03-18 19:08:37 +00:00
dependabot[bot]
b45e892084
Update average requirement from 0.13 to 0.14 ( #1388 )
2024-03-18 09:28:20 +00:00
Diggory Hardy
5577003615
Update CHANGELOGs and prepare rand 0.9.0-alpha.0 ( #1395 )
...
Also: add pull-request template
2024-02-18 17:02:05 +00:00
dependabot[bot]
923bcf1711
Update serde_with requirement from 1.14.0 to 3.6.1 ( #1392 )
2024-02-18 10:20:46 +00:00
Diggory Hardy
dba696e9f1
Rename WeightedError → WeightError; add IndexedRandom, IndexedMutRandom ( #1382 )
...
* Remove deprecated module rand::distributions::weighted
* WeightedTree: return InvalidWeight on not-a-number
* WeightedTree::try_sample return AllWeightsZero given no weights
* Rename WeightedError -> WeightError and revise variants
* Re-export WeightError from rand::seq
* Revise errors of rand::index::sample_weighted
* Split SliceRandom into IndexedRandom, IndexedMutRandom and SliceRandom
2024-02-15 08:17:45 +00:00
dependabot[bot]
ef245fd582
Update special requirement from 0.8.1 to 0.10.3 ( #1384 )
2024-02-13 11:33:39 +00:00
Diggory Hardy
e5a366d07f
Update zerocopy; trim unused methods ( #1393 )
...
* Remove mention of stdsimd
* Move fns FloatSIMDUtils::replace, extract to new cfg-gated trait FloatSIMDScalarUtils
* Remove unused utility methods on floats, bool
* Remove unused import
* Update to zerocopy 0.8.0-alpha.5
* Remove unneeded import of Float
2024-02-13 11:13:57 +00:00
Makro
f827c006b5
Add WeightedIndexTree to dist_randr ( #1372 )
...
Add WeightedIndexTree to rand_distr
Co-authored-by: xmakro <makro@>
2024-02-08 15:00:58 +00:00
Vinzent Steinberg
c427cff1d5
Fix clippy warnings
2023-12-14 08:50:57 +01:00
Alex Saveau
ef89cbefaf
Support using std without getrandom or rand_chacha ( #1354 )
...
Support using std without getrandom or rand_chacha
Signed-off-by: Alex Saveau <saveau.alexandre@gmail.com>
2023-11-06 08:15:07 +00:00
OldEnglishSheepdog
d0499f0a26
Correcting method name in comment ( #1350 )
...
Co-authored-by: Detlef <none@none.org>
2023-10-30 09:39:38 +00:00
bjorn3
e42c385872
MSRV=1.60, use more permissive cfg on test
...
* Use cfg(panic = unwind) instead of a check for wasm32 to see if unwinding is supported
This allows the test to run on a future wasm target with exception support as
well as running the test suite with panic=abort on non-wasm targets.
* Bump MSRV to 1.60
2023-10-11 08:54:54 +01:00
Guillaume Gomez
176e73647a
Add --generate-link-to-definition
option when building on docs.rs ( #1327 )
...
* Add `--generate-link-to-definition` option when building on docs.rs
* Fix documentation issues
2023-07-29 08:12:57 +01:00
benjamin
a4739d8bd4
Add test for infinite loop
2023-07-05 08:58:12 +02:00
benjamin
c5af1f8072
Fix spaces
2023-07-05 08:56:46 +02:00
Benjamin Lieser
dc8bc097e3
Update rand_distr/src/binomial.rs
...
Some formatting
Co-authored-by: Vinzent Steinberg <Vinzent.Steinberg@gmail.com>
2023-07-04 23:04:40 +02:00
Benjamin Lieser
c7c65979a8
Fix infinite loop in Binomial distribution
2023-07-04 17:42:15 +02:00
Warren Weckesser
b593db692d
Replace tab character with spaces in poisson.rs. ( #1320 )
2023-06-20 15:50:19 +01:00
warren
c12db0b8ee
Use an array for DirichletFromGamma.samplers
2023-03-30 15:35:22 -04:00