[racket] order of (discrete-dist-probs dist) same as (discrete-dist-values dist) ?

From: John Clements (clements at brinckerhoff.org)
Date: Mon Apr 28 19:28:19 EDT 2014

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?

John Clements



Posted on the users mailing list.