Allow rand
to sample from non-identical Sampleables over time
#71
Labels
enhancement
New feature or request
rand
to sample from non-identical Sampleables over time
#71
See original comment below. On discussion, we think that this is a good thing to do, even though it is breaking.
Original comment:
@willtebbutt I'm actually wondering if it would be good to make a breaking change here, whilst working on this section.
Currently, this version of
rand
takes:x
, which is used only for alignmentS
, determining the sampleabled
(either tuple or int varargs), which make the output value type be an arrayI think it might be more future proof to unify
x
andS
.Pros: it means that in the future, one can e.g. have a node that ticks with distributions, so that the random value drawn at each knot can be drawn from that distribution.
Cons: It is breaking (although better now than later), and it's slightly more awkward to generate "trivial" random numbers.
e.g. old:
new:
Any thoughts?
Originally posted by @tpgillam in #67 (comment)
The text was updated successfully, but these errors were encountered: