3 releases
Uses new Rust 2024
new 0.1.2-beta | Apr 11, 2025 |
---|---|
0.1.1-beta | Apr 6, 2025 |
0.1.0-beta | Apr 6, 2025 |
#555 in Algorithms
309 downloads per month
37KB
1.5K
SLoC
uniquetol-rs
uniquetol is a Rust toolbox for isolating unique values in n-dimensional arrays
of imprecise floating-point data within a given tolerance. In the
one-dimensional case, it returns the largest subset in which no pairs of
elements are approximately equal. Here two numbers x
and y
are said to be
"approximately equal" within an absolute tolerance atol
or a relative
tolerance rtol
if and only if |x - y| ≤ max(atol, rtol∙max(|x|, |y|))
.
This project was inspired by the uniquetol
function in MATLAB and NumPy's
unique
function in Python.
(CURRENTLY UNDER DEVELOPMENT)
Dependencies
~1.5MB
~29K SLoC