4.1 KiB
4.1 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Unreleased
- The
serde1
feature has been renamedserde
(#1477) - Fix panic in Binomial (#1484)
- Move some of the computations in Binomial from
sample
tonew
(#1484) - Add Kolmogorov Smirnov test for sampling of
Normal
andBinomial
(#1494)
Added
- Add plots for
rand_distr
distributions to documentation (#1434) - Add
PertBuilder
, fix case where mode ≅ mean (#1452)
[0.5.0-alpha.1] - 2024-03-18
- Target
rand
version0.9.0-alpha.1
[0.5.0-alpha.0] - 2024-02-18
This is a pre-release. To depend on this version, use rand_distr = "=0.5.0-alpha.0"
to prevent automatic updates (which can be expected to include breaking changes).
Additions
- Make distributions comparable with
PartialEq
(#1218) - Add
WeightedIndexTree
(#1372)
Changes
- Target
rand
version0.9.0-alpha.0
- Remove unused fields from
Gamma
,NormalInverseGaussian
andZipf
distributions (#1184) This breaks serialization compatibility with older versions. Dirichlet
now usesconst
generics, which means that its size is required at compile time (#1292)- The
Dirichlet::new_with_size
constructor was removed (#1292)
Fixes
- Fix Knuth's method so
Poisson
doesn't return -1.0 for small lambda (#1284) - Fix
Poisson
distribution instantiation so it return an error if lambda is infinite (#1291) - Fix Dirichlet sample for small alpha values to avoid NaN samples (#1209)
- Fix infinite loop in
Binomial
distribution (#1325)
[0.4.3] - 2021-12-30
- Fix
no_std
build (#1208)
[0.4.2] - 2021-09-18
- New
Zeta
andZipf
distributions (#1136) - New
SkewNormal
distribution (#1149) - New
Gumbel
andFrechet
distributions (#1168, #1171)
[0.4.1] - 2021-06-15
- Empirically test PDF of normal distribution (#1121)
- Correctly document
no_std
support (#1100) - Add
std_math
feature to preferstd
overlibm
for floating point math (#1100) - Add mean and std_dev accessors to Normal (#1114)
- Make sure all distributions and their error types implement
Error
,Display
,Clone
,Copy
,PartialEq
andEq
as appropriate (#1126) - Port benchmarks to use Criterion crate (#1116)
- Support serde for distributions (#1141)
[0.4.0] - 2020-12-18
- Bump
rand
to v0.8.0 - New
Geometric
,StandardGeometric
andHypergeometric
distributions (#1062) - New
Beta
sampling algorithm for improved performance and accuracy (#1000) Normal
andLogNormal
now supportfrom_mean_cv
andfrom_zscore
(#1044)- Variants of
NormalError
changed (#1044)
[0.3.0] - 2020-08-25
- Move alias method for
WeightedIndex
fromrand
(#945) - Rename
WeightedIndex
toWeightedAliasIndex
(#1008) - Replace custom
Float
trait withnum-traits::Float
(#987) - Enable
no_std
support vianum-traits
math functions (#987) - Remove
Distribution<u64>
impl forPoisson
(#987) - Tweak
Dirichlet
andalias_method
to use boxed slice instead ofVec
(#987) - Use whitelist for package contents, reducing size by 5kb (#983)
- Add case
lambda = 0
in the parametrization ofExp
(#972) - Implement inverse Gaussian distribution (#954)
- Reformatting and use of
rustfmt::skip
(#926) - All error types now implement
std::error::Error
(#919) - Re-exported
rand::distributions::BernoulliError
(#919) - Add value stability tests for distributions (#891)
[0.2.2] - 2019-09-10
- Fix version requirement on rand lib (#847)
- Clippy fixes & suppression (#840)
[0.2.1] - 2019-06-29
- Update dependency to support Rand 0.7
- Doc link fixes
[0.2.0] - 2019-06-06
- Remove
new
constructors for zero-sized types - Add Pert distribution
- Fix undefined behavior in
Poisson
- Make all distributions return
Result
s instead of panicking - Implement
f32
support for most distributions - Rename
UnitSphereSurface
toUnitSphere
- Implement
UnitBall
andUnitDisc
[0.1.0] - 2019-06-06
Initial release. This is equivalent to the code in rand
0.6.5.