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
randversion0.9.0-alpha.0 - Remove unused fields from
Gamma,NormalInverseGaussianandZipfdistributions (#1184) This breaks serialization compatibility with older versions. Dirichletnow usesconstgenerics, which means that its size is required at compile time (#1292)- The
Dirichlet::new_with_sizeconstructor was removed (#1292)
Fixes
- Fix Knuth's method so
Poissondoesn't return -1.0 for small lambda (#1284) - Fix
Poissondistribution 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
Binomialdistribution (#1325)