Re: [rng] Add ObjectSampler interfaces and a CompositeSampler

2021-05-15 Thread Alex Herbert
On Sat, 15 May 2021 at 16:02, Gilles Sadowski wrote: > Hi Alex. > > Would the proposal be any different if with Java 8+ features? > [IOW, is it still useful (in any sense) to stick with Java 6?] > The Sampler interface can be replaced with Supplier. But then all the sampling methods would have

Re: [rng] Add ObjectSampler interfaces and a CompositeSampler

2021-05-15 Thread Gilles Sadowski
Hi Alex. Would the proposal be any different if with Java 8+ features? [IOW, is it still useful (in any sense) to stick with Java 6?] Regards, Gilles > [...] - To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For

[rng] Add ObjectSampler interfaces and a CompositeSampler

2021-05-15 Thread Alex Herbert
New shape samplers have been added to the library to sampler coordinates from different shapes (see RNG-132 [1]). I have been working on an idea to combine shape samplers together so that a more complex shape can be sampled, for example a surface or volume. This requires that different samplers