-
-
Notifications
You must be signed in to change notification settings - Fork 470
Closed
Labels
E-questionParticipation: opinions wantedParticipation: opinions wanted
Description
This is an issue that has been discussed in part several times already in other contexts. But I think it's now worth making an issue specifically about this to get extra feedback.
There are several cases within distribution algorithms that we've had to make decisions about speed-vs-accuracy trade-offs:
Standard
now uses 24/53 bits precision (Future-proofing 24/53bit precision for f32/f64 generation #416); we have discussion around a high-precision variant (Implement HighPrecision01 distribution #372)Uniform
(for ranges) uses a rejection zone to avoid bias; as noted here we can sometimes use faster approaches if we don't care about small amounts of biasgen_bool
has at least 3 possible implementations with varying accuracy and speed (Implement Bernoulli distribution #411)gen_ratio
is a nice addition togen_bool
with at least two different approachs (Add API for getting a bool with chance of exactly 1-in-10 or 2-in-3 #491)
So far, other than with the suggested addition of a HighPrecision
distribution (#372) (and the other float sampling methods Open01
and OpenClosed01
), we have not given users any choice over this speed-vs-accuracy trade-off but have simply made the choice for users.
- Should we try to give users the choice, some how?
- Which criteria should we use to choose default implementations?
schneiderfelipeschneiderfelipe
Metadata
Metadata
Assignees
Labels
E-questionParticipation: opinions wantedParticipation: opinions wanted