▲ | kccqzy 5 days ago | ||||||||||||||||||||||||||||||||||||||||||||||
The article says, > Under the hood, Uncertain<T> models GPS uncertainty using a Rayleigh distribution. And the Rayleigh distribution is clearly not just an interval with a uniformly random distribution in between. Normal interval arithmetic isn't useful because that uniform random distribution isn't at all a good model for the real world. Take for example that Boost library you linked. Ask it to compute (-2,2)*(-2,2). It will give (-4,4). A more sensible result might be something like (-2.35, 2.35). The -4 lower bound is only attainable when you have -2 and 2 as the multiplicands which are at the extremes of the interval; probabilistically if we assume these are independent random variables then two of them achieving this extreme value simultaneously should have an even lower probability. | |||||||||||||||||||||||||||||||||||||||||||||||
▲ | rendaw 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||
While it does sound like GP missed a distinction, I don't see how (-2.35, 2.35) would be sensible. The extremes can happen (or else they wouldn't be part of the input intervals) and the code has to sensibly deal with that event in order to be correct. | |||||||||||||||||||||||||||||||||||||||||||||||
|