You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md - I now know accuracy and precision are not synonyms
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -108,9 +108,9 @@ This crate is obviously slower than the primitive floats in the standard library
108
108
109
109
You can see comparisons with this library's floats and the standard library's in the [plots/bench](https://github.com/sigurd4/custom_float/tree/master/plots/bench) folder. For some methods not found in `std`/`core`, i use `libm` instead as a comparison.
110
110
111
-
## Accuracy
111
+
## Precision
112
112
113
-
The accuracy is obviously dependent on the size of your float's mantissa and its base, and its range depends on the size of its exponent. But given a float with a (practically) infinite resolution, some functions on here still give an error. My goal is to make that error as small as possible. The accuracy of all of the floating point operations are not perfect, but work well enough to be usable.
113
+
The precision is dependent on the size of your float's mantissa and its base, and its range depends on the size of its exponent. But given a float with a (practically) infinite resolution, some functions on here still give an error. My goal is to make that error as small as possible. The precision of all of the floating point operations are not perfect, but work well enough to be usable.
114
114
115
115
You can see comparisons with this library's floats and the standard library's in the [plots](https://github.com/sigurd4/custom_float/tree/master/plots) folder, and error in the [plots/error](https://github.com/sigurd4/custom_float/tree/master/plots/error). For some methods not found in `std`/`core`, i use `libm` instead as a comparison.
116
116
@@ -119,7 +119,7 @@ You can see comparisons with this library's floats and the standard library's in
119
119
- Make more and more of the functions work at compile-time.
120
120
- This is currently difficult because my code is very generic, and relies on traits from the `num-traits` crate (that are not const-traits, because those are experimental). Once rust's const-traits are a stable language-feature, you'll see more of this.
121
121
- Stabilize large bases. Currently i mostly just test base 2 and 10. For large bases (say, 1000) you tend to get integer overflow.
122
-
- Stabilize very small floats (for example the 8-bit FpG711). Very small floats have terrible numeric accuracy right now for many rational functions.
122
+
- Stabilize very small floats (for example the 8-bit FpG711). Very small floats have terrible numeric precision right now for many rational functions.
123
123
- Stabilize edge cases like unsigned floats, exponentless floats (fixed-point, really), and mantissaless floats (just exponentials?).
0 commit comments