Class WeigthedSelectorDrawWithReplacement<T>

Type Parameters:
T -
All Implemented Interfaces:
Cloneable, WeightedSelector<T>

public class WeigthedSelectorDrawWithReplacement<T> extends WeightedSelectorMutable<T>
Weighted selector with draw with replacement semantics. This means, any entry returned by sampleEntry is removed from the candidate pool and thus will no longer be returned by future invocations of these methods. Note, that the convenience method sample is based on sampleEntry.
Author:
raven