Closed
Description
Update: we will likely use these distributions:
Uniform
for the default distribution, replacingRand
(including ints, floats with range[0, 1)
, etc.)- extra FP distributions per this strategy
Original post follows.
I'm looking at bringing over some of the changes to distributions code to upstream, in particular replacing Sample
and IndependentSample
with Distribution
, but the change-set touches on a few other things (adjustments to things like Exp1
are needed to support dynamic dispatch (Rng+?Sized
) in Distribution::sample
, since Rand
doesn't support this and changing that would break all Rand
implementations everywhere).
So, question: is everyone happy with the distribution names we converged on in this branch, that is
Uniform
for integers,Uniform01
andOpen01
etc. for floats,- and
Default
for "a sensible distribution for any type"?
This is of course redundant; we could dropUniform
andUniform01
in favour of usingDefault
directly. Possibly there is a better name thanDefault
(but please notRand
)!
Wacky ideas:
Uniform
→Full
orFullRange
Uniform01
→HalfOpen01
Of course we don't need any changes. Just asking since it didn't always appear people were happy with these names.