forked from rust-random/rand
-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Description
Update: we will likely use these distributions:
Uniformfor 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
Uniformfor integers,Uniform01andOpen01etc. for floats,- and
Defaultfor "a sensible distribution for any type"?
This is of course redundant; we could dropUniformandUniform01in favour of usingDefaultdirectly. Possibly there is a better name thanDefault(but please notRand)!
Wacky ideas:
Uniform→FullorFullRangeUniform01→HalfOpen01
Of course we don't need any changes. Just asking since it didn't always appear people were happy with these names.