| 1 |
# Changelog |
| 2 |
All notable changes to this project will be documented in this file. |
| 3 |
|
| 4 |
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) |
| 5 |
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 6 |
|
| 7 |
## [0.4.3] - 2021-12-30 |
| 8 |
- Fix `no_std` build (#1208) |
| 9 |
|
| 10 |
## [0.4.2] - 2021-09-18 |
| 11 |
- New `Zeta` and `Zipf` distributions (#1136) |
| 12 |
- New `SkewNormal` distribution (#1149) |
| 13 |
- New `Gumbel` and `Frechet` distributions (#1168, #1171) |
| 14 |
|
| 15 |
## [0.4.1] - 2021-06-15 |
| 16 |
- Empirically test PDF of normal distribution (#1121) |
| 17 |
- Correctly document `no_std` support (#1100) |
| 18 |
- Add `std_math` feature to prefer `std` over `libm` for floating point math (#1100) |
| 19 |
- Add mean and std_dev accessors to Normal (#1114) |
| 20 |
- Make sure all distributions and their error types implement `Error`, `Display`, `Clone`, |
| 21 |
`Copy`, `PartialEq` and `Eq` as appropriate (#1126) |
| 22 |
- Port benchmarks to use Criterion crate (#1116) |
| 23 |
- Support serde for distributions (#1141) |
| 24 |
|
| 25 |
## [0.4.0] - 2020-12-18 |
| 26 |
- Bump `rand` to v0.8.0 |
| 27 |
- New `Geometric`, `StandardGeometric` and `Hypergeometric` distributions (#1062) |
| 28 |
- New `Beta` sampling algorithm for improved performance and accuracy (#1000) |
| 29 |
- `Normal` and `LogNormal` now support `from_mean_cv` and `from_zscore` (#1044) |
| 30 |
- Variants of `NormalError` changed (#1044) |
| 31 |
|
| 32 |
## [0.3.0] - 2020-08-25 |
| 33 |
- Move alias method for `WeightedIndex` from `rand` (#945) |
| 34 |
- Rename `WeightedIndex` to `WeightedAliasIndex` (#1008) |
| 35 |
- Replace custom `Float` trait with `num-traits::Float` (#987) |
| 36 |
- Enable `no_std` support via `num-traits` math functions (#987) |
| 37 |
- Remove `Distribution<u64>` impl for `Poisson` (#987) |
| 38 |
- Tweak `Dirichlet` and `alias_method` to use boxed slice instead of `Vec` (#987) |
| 39 |
- Use whitelist for package contents, reducing size by 5kb (#983) |
| 40 |
- Add case `lambda = 0` in the parametrization of `Exp` (#972) |
| 41 |
- Implement inverse Gaussian distribution (#954) |
| 42 |
- Reformatting and use of `rustfmt::skip` (#926) |
| 43 |
- All error types now implement `std::error::Error` (#919) |
| 44 |
- Re-exported `rand::distributions::BernoulliError` (#919) |
| 45 |
- Add value stability tests for distributions (#891) |
| 46 |
|
| 47 |
## [0.2.2] - 2019-09-10 |
| 48 |
- Fix version requirement on rand lib (#847) |
| 49 |
- Clippy fixes & suppression (#840) |
| 50 |
|
| 51 |
## [0.2.1] - 2019-06-29 |
| 52 |
- Update dependency to support Rand 0.7 |
| 53 |
- Doc link fixes |
| 54 |
|
| 55 |
## [0.2.0] - 2019-06-06 |
| 56 |
- Remove `new` constructors for zero-sized types |
| 57 |
- Add Pert distribution |
| 58 |
- Fix undefined behavior in `Poisson` |
| 59 |
- Make all distributions return `Result`s instead of panicking |
| 60 |
- Implement `f32` support for most distributions |
| 61 |
- Rename `UnitSphereSurface` to `UnitSphere` |
| 62 |
- Implement `UnitBall` and `UnitDisc` |
| 63 |
|
| 64 |
## [0.1.0] - 2019-06-06 |
| 65 |
Initial release. This is equivalent to the code in `rand` 0.6.5. |