#gamedev #approximate #evaluate #default #data #values

nightly approximately

Approximately compare two any values

2 stable releases

1.1.0 Jul 31, 2024
1.0.0 Jul 30, 2024

#1361 in Math

37 downloads per month
Used in 2 crates

MIT license

7KB
111 lines

approximately

Evaluate the approximate data

Description

Do you want a crate that can implement approximate functionality? This crate can achieve the functionalities you desire, such as approximate image matching or estimating the similarity between two sets of features. For specific usage, please refer to the examples.

The usage is straightforward, and by default, tolerance levels for the types f32 and f64 are already implemented with precisions of 1e-3 and 1e-6, respectively.


lib.rs:

approximately

ApproxEq is used to provide an approximate equality for the type you want, but your type must implement the approx trait itself. By default, [f32] and [f64] have an implementation with tolerances of 1e-3 and 1e-6, respectively.

No runtime deps

Features