0.25.0
qsv-stats 0.25.0 Release Notes
Performance Improvements
- Optimized median calculation with improved bounds checking
- Refactored antimodes calculation for better efficiency and memory usage
- Added
#[inline]
attributes to frequently called functions:stddev()
variance()
mean()
Code Quality
- Complete rewrite of
antimodes_on_sorted
implementation- More efficient memory usage
- Better handling of edge cases
- Clearer code organization
- Enhanced safety with additional code comments explaining unsafe operations
- Improved bounds checking in median calculations
Documentation
- Added clarifying documentation for antimodes behavior (only returns first 10 antimodes)
- Added safety comments explaining numeric conversions
- Improved code readability with detailed comments explaining algorithmic steps
Internal Changes
- Fully qualified
std::fmt
usage in debug assertions - Simplified frequency increment checks using
is_some_and
- Applied rustfmt formatting
- Removed unnecessary imports
Usage
Add to your Cargo.toml
:
[dependencies]
qsv-stats = "0.25"
Full Changelog: 0.24.0...0.25.0