Update Rust crate statrs to 0.18.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
statrs | dependencies | minor |
0.17.1 -> 0.18.0
|
⚠️ WarningSome dependencies could not be looked up. Check the warning logs for more information.
Release Notes
statrs-dev/statrs (statrs)
v0.18.0
✨ Added
- Added more inverse cumulative distribution functions.
- Introduced feature flags:
rand
andnalgebra
. - Added the
std_dev
method to theDistribution
trait explicitly. - Supported sampling integers from discrete distributions.
- Added support for the Gumbel distribution.
⚠️ Breaking Changes
- Migrated multivariate distributions to generic dimensions.
- Replaced
StatsError
with module-level error types indistribution
and its children. - Changed
checked_logit
,checked_multinomial
, and similar methods to returnOption
to handle invalid inputs. - Changed
Chi
distribution to useu64
for degrees of freedom.
🛠️ Changed
- Upgraded
nalgebra
to version 0.33.- Upgrades MSRV to 1.65+
- Improved documentation and added examples (e.g., for Hypergeometric distribution).
- Added MSRV (Minimum Supported Rust Version) metadata to
Cargo.toml
and documentation. - Introduced coverage reporting with
llvm-cov
. - Updated CI to check all feature combinations and ensure MSRV compliance.
- Added an MSRV badge to
crates.io
.
✅ Fixed
- Corrected formatting issues in documentation.
- Fixed several
rustdoc
warnings. - Expanded test coverage for Dirichlet and Multinomial distributions.
- Improved ergonomics at cli for tests and ensured compatibility with updated NIST data.
❌ Removed
- Replaced
StatsError
with module-level error types. - Deprecated the
error
module and preformatted NIST data. - Removed
rustfmt.toml
as part of CI clean-up.
🎉 New Contributors
- @SabrinaJewson and @alimf17 made their first contributions!
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Renovate Bot