←back to thread

Uncertain<T>

(nshipster.com)
444 points samtheprogram | 2 comments | | HN request time: 0.413s | source
Show context
j2kun ◴[] No.45056827[source]
This concept has been done many times in the past, under the name "interval arithmetic." Boost has it [1] as does flint [2]

What is really curious is why, after being reinvented so many times, it is not more mainstream. I would love to talk to people who have tried using it in production and then decided it was a bad idea (if they exist).

[1]: https://www.boost.org/doc/libs/1_89_0/libs/numeric/interval/... [2]: https://arblib.org/

replies(8): >>45056929 #>>45057194 #>>45057366 #>>45057865 #>>45058239 #>>45058375 #>>45058723 #>>45062336 #
1. pklausler ◴[] No.45057194[source]
Interval arithmetic makes good intuitive sense when the endpoints of the intervals can be represented exactly. Figuring out how to do that, however, is not obvious.
replies(1): >>45059131 #
2. eru ◴[] No.45059131[source]
Also not all uncertainties are modeled well by uniform distributions over an interval.