[racket] order of (discrete-dist-probs dist) same as (discrete-dist-values dist) ?
On 04/28/2014 05:28 PM, John Clements wrote:
> The documentation for discrete probabilities goes out of its way to specified that discrete distributions are unordered. However, it looks to me like order is partially present; in particular, if I use ‘discrete-dist-values’ and ‘discrete-dist-probs’, I’m hoping (and it appears to be the case) that a value appearing as, say, the fifth element of the values list corresponds to the fifth probability in the probabilities list. Is this the case?
Yes. Obviously, the documentation needs a little work. :)
Neil