[racket] order of (discrete-dist-probs dist) same as (discrete-dist-values dist) ?
On 05/01/2014 04:31 PM, John Clements wrote:
>
> On Apr 28, 2014, at 8:29 PM, Neil Toronto <neil.toronto at gmail.com> wrote:
>
>> 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. :)
>
> I’m just going to push some text. You can correct it if it’s wrong, or tell me if you want me just to revert it.
It looks great. Thanks!
Neil ⊥