probmods / webchurch

A Church to Javascript compiler (DEPRECATED)
Other
140 stars 15 forks source link

sample-integer should not be written in terms of uniform #35

Closed longouyang closed 10 years ago

longouyang commented 10 years ago

sample-integer is currently written in terms of the uniform distribution on [0,1].

This obviously won't work for enumeration-query, e.g.,

(enumeration-query
 (sample-integer 5)
 true)

does not return a distribution on [0,1,2,3,4]

ngoodman commented 10 years ago

Fixed in ec453e5472d5f09d1d8bd9c2b45aa2753dd9e45c.